summaryrefslogtreecommitdiff
path: root/gui/qml
diff options
context:
space:
mode:
authorkali kaneko (leap communications) <kali@leap.se>2020-06-23 18:47:25 +0200
committerkali kaneko (leap communications) <kali@leap.se>2020-08-11 20:59:51 +0200
commit3e0764caa84a21a60f971ec3693429a9981c5921 (patch)
treee5f50c289536f15351bf325689e7037af6994554 /gui/qml
parenteb97dc510c92a2fc1a340cccf4103068699947c4 (diff)
[feat] hide systray if -n option is passed
Diffstat (limited to 'gui/qml')
-rw-r--r--gui/qml/main.qml6
1 files changed, 4 insertions, 2 deletions
diff --git a/gui/qml/main.qml b/gui/qml/main.qml
index 2ac9398..b4aa19a 100644
--- a/gui/qml/main.qml
+++ b/gui/qml/main.qml
@@ -80,7 +80,7 @@ ApplicationWindow {
SystemTrayIcon {
id: systray
- visible: true
+ visible: systrayVisible
onActivated: {
// this looks like a widget bug. middle click (reasons 3 or 4)
@@ -105,7 +105,9 @@ ApplicationWindow {
tooltip = qsTr("Checking status...")
console.debug("systray init completed")
hide();
- show();
+ if (systrayVisible) {
+ show();
+ }
}
menu: Menu {