summaryrefslogtreecommitdiffhomepage
path: root/gui/src
diff options
context:
space:
mode:
authorAndrej Mihajlov <and@mullvad.net>2019-04-02 12:36:05 +0200
committerAndrej Mihajlov <and@mullvad.net>2019-04-02 14:13:37 +0200
commite55d84cb9dd60eb1c8516d5909e9a45f9e46f5a5 (patch)
tree5aecd279516c8606820d7d7455521ece8eff7755 /gui/src
parent2d340b49888068018539ddb85ff9e3b510b7355b (diff)
downloadmullvadvpn-e55d84cb9dd60eb1c8516d5909e9a45f9e46f5a5.tar.xz
mullvadvpn-e55d84cb9dd60eb1c8516d5909e9a45f9e46f5a5.zip
Update the tray icon to `unsecured` state when losing connectivity with daemon
Diffstat (limited to 'gui/src')
-rw-r--r--gui/src/main/index.ts3
1 files changed, 3 insertions, 0 deletions
diff --git a/gui/src/main/index.ts b/gui/src/main/index.ts
index 6080c80af2..2d048ab2c3 100644
--- a/gui/src/main/index.ts
+++ b/gui/src/main/index.ts
@@ -446,6 +446,9 @@ class ApplicationMain {
// stop periodic updates
this.stopLatestVersionPeriodicUpdates();
+ // update the tray icon to indicate that the computer is not secure anymore
+ this.updateTrayIcon({ state: 'disconnected' }, false);
+
// notify renderer process
if (this.windowController) {
IpcMainEventChannel.daemonDisconnected.notify(