From 0da663d24e7559f622eeced3d558150a7b6ee2db Mon Sep 17 00:00:00 2001
From: "kali kaneko (leap communications)" <kali@leap.se>
Date: Mon, 23 Nov 2020 20:16:14 +0100
Subject: [PATCH] [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.
---
 gui/qml/main.qml | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/gui/qml/main.qml b/gui/qml/main.qml
index 9ce5800f..b9468b56 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 {
-- 
GitLab