Skip to content
Snippets Groups Projects
Unverified Commit 0da663d2 authored by Kali Kaneko's avatar Kali Kaneko
Browse files

[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.
parent 42188ca7
No related branches found
No related tags found
No related merge requests found
...@@ -168,9 +168,11 @@ ApplicationWindow { ...@@ -168,9 +168,11 @@ ApplicationWindow {
console.debug("systray init completed") console.debug("systray init completed")
hide(); hide();
if (systrayVisible) { if (systrayVisible) {
let appname: ctx ? ctx.appName: "VPN"
show(); 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 { ...@@ -192,7 +194,7 @@ ApplicationWindow {
StateGroup { StateGroup {
id: vpn id: vpn
state: ctx ? ctx.status : "" state: ctx ? ctx.status : ""
states: [ states: [
State { name: "initializing" }, State { name: "initializing" },
State { State {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment