diff options
author | kali kaneko (leap communications) <kali@leap.se> | 2020-11-23 20:16:14 +0100 |
---|---|---|
committer | kali kaneko (leap communications) <kali@leap.se> | 2020-11-23 20:16:52 +0100 |
commit | 0da663d24e7559f622eeced3d558150a7b6ee2db (patch) | |
tree | 4c623d348752106a731b3bbc58d47c89642319a6 /gui | |
parent | 42188ca77e3a4dc165863ffc29391034729eeb98 (diff) |
[feat] let's use the notification only in windows for now
We really need this for windows.
However, I'm afraid for regular users in linux/mac the notification
might be too obstrusive. As we commented in the mr, one way around this
might be to only display that tip the first few times - and then persist
a flag about it having been shown.
Diffstat (limited to 'gui')
-rw-r--r-- | gui/qml/main.qml | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/gui/qml/main.qml b/gui/qml/main.qml index 9ce5800..b9468b5 100644 --- a/gui/qml/main.qml +++ b/gui/qml/main.qml @@ -168,9 +168,11 @@ ApplicationWindow { console.debug("systray init completed") hide(); if (systrayVisible) { - let appname: ctx ? ctx.appName: "VPN" show(); - showNotification(appname + " is up and running. Please use system tray icon to control it."); + if (Qt.platform.os === "windows") { + let appname: ctx ? ctx.appName: "VPN" + showNotification(appname + " is up and running. Please use system tray icon to control it."); + } } } @@ -192,7 +194,7 @@ ApplicationWindow { StateGroup { id: vpn state: ctx ? ctx.status : "" - + states: [ State { name: "initializing" }, State { |