summaryrefslogtreecommitdiff
path: root/gui/components/Systray.qml
diff options
context:
space:
mode:
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()
+ }
}
}