diff options
author | kali kaneko (leap communications) <kali@leap.se> | 2021-12-16 15:17:34 +0100 |
---|---|---|
committer | kali kaneko (leap communications) <kali@leap.se> | 2021-12-16 15:17:34 +0100 |
commit | 25a905ed7775ca8ecc12de158ff74d1e7447db17 (patch) | |
tree | 33e09ff761962cadde65c91dea5ab7f435b6ac12 /gui/components/Systray.qml | |
parent | 66f3e3c57e54644c59caab987fd5bda5cae0ee0b (diff) |
more fix
Diffstat (limited to 'gui/components/Systray.qml')
-rw-r--r-- | gui/components/Systray.qml | 7 |
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() + } } } |