From 2b20971115e0c789c9e387042fc23b5b60f5af56 Mon Sep 17 00:00:00 2001
From: Ruben Pollan <meskio@sindominio.net>
Date: Wed, 21 Feb 2018 15:46:30 +0100
Subject: [PATCH] [feat] display the off icon while waiting for status

- Resolves: #14
---
 systray.go | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/systray.go b/systray.go
index 04dd5b41..d8dac4fb 100644
--- a/systray.go
+++ b/systray.go
@@ -55,6 +55,8 @@ func (bt bmTray) onExit() {
 }
 
 func (bt *bmTray) onReady() {
+	systray.SetIcon(icon.Off)
+
 	bt.mStatus = systray.AddMenuItem(printer.Sprintf("Checking status..."), "")
 	bt.mStatus.Disable()
 	bt.mTurnOn = systray.AddMenuItem(printer.Sprintf("Turn on"), printer.Sprintf("Turn RiseupVPN on"))
-- 
GitLab