summaryrefslogtreecommitdiff
path: root/gui/components/Systray.qml
diff options
context:
space:
mode:
authorkali kaneko (leap communications) <kali@leap.se>2021-12-16 15:17:34 +0100
committerkali kaneko (leap communications) <kali@leap.se>2021-12-16 15:17:34 +0100
commit25a905ed7775ca8ecc12de158ff74d1e7447db17 (patch)
tree33e09ff761962cadde65c91dea5ab7f435b6ac12 /gui/components/Systray.qml
parent66f3e3c57e54644c59caab987fd5bda5cae0ee0b (diff)
more fix
Diffstat (limited to 'gui/components/Systray.qml')
-rw-r--r--gui/components/Systray.qml7
1 files changed, 6 insertions, 1 deletions
diff --git a/gui/components/Systray.qml b/gui/components/Systray.qml
index f89bd16..51f3148 100644
--- a/gui/components/Systray.qml
+++ b/gui/components/Systray.qml
@@ -55,7 +55,12 @@ Labs.SystemTrayIcon {
Labs.MenuItem {
//: Part of the systray menu; quits the application
text: qsTr("Quit")
- onTriggered: backend.quit()
+ onTriggered: {
+ if (ctx.status == "on") {
+ backend.switchOff()
+ }
+ backend.quit()
+ }
}
}