summaryrefslogtreecommitdiff
path: root/gui/components/Systray.qml
diff options
context:
space:
mode:
authorkali kaneko (leap communications) <kali@leap.se>2021-12-16 13:54:03 +0100
committerkali kaneko (leap communications) <kali@leap.se>2021-12-16 20:58:52 +0100
commitc2317a1f99ff778010385aad11745eb75d6a1900 (patch)
treee58ed853022036130aece07baf62c14d38f68ac9 /gui/components/Systray.qml
parenta114b25c5720cedc93bec36e4fa822fe6cfa85b4 (diff)
[bug] fix osx quits from app menu and dock
aboutToQuit let us catch Quits coming from the osx menu or the dock.
Diffstat (limited to 'gui/components/Systray.qml')
-rw-r--r--gui/components/Systray.qml6
1 files changed, 4 insertions, 2 deletions
diff --git a/gui/components/Systray.qml b/gui/components/Systray.qml
index f25860c..1026f01 100644
--- a/gui/components/Systray.qml
+++ b/gui/components/Systray.qml
@@ -53,9 +53,11 @@ Labs.SystemTrayIcon {
}
Labs.MenuItem {
- //: Part of the systray menu; quits que application
+ //: Part of the systray menu; quits the application
text: qsTr("Quit")
- onTriggered: backend.quit()
+ onTriggered: {
+ backend.quit()
+ }
}
}