summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuben Pollan <meskio@sindominio.net>2018-02-21 15:46:30 +0100
committerRuben Pollan <meskio@sindominio.net>2018-02-21 15:46:30 +0100
commit2b20971115e0c789c9e387042fc23b5b60f5af56 (patch)
tree7c98963497a03ba95c5b7fdc1d57badb18fdfd6e
parent868b796e77146e259c36789666282007cf80cc9b (diff)
[feat] display the off icon while waiting for status
- Resolves: #14
-rw-r--r--systray.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/systray.go b/systray.go
index 04dd5b4..d8dac4f 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"))