diff options
author | Ruben Pollan <meskio@sindominio.net> | 2018-02-21 15:46:30 +0100 |
---|---|---|
committer | Ruben Pollan <meskio@sindominio.net> | 2018-02-21 15:46:30 +0100 |
commit | 2b20971115e0c789c9e387042fc23b5b60f5af56 (patch) | |
tree | 7c98963497a03ba95c5b7fdc1d57badb18fdfd6e /systray.go | |
parent | 868b796e77146e259c36789666282007cf80cc9b (diff) |
[feat] display the off icon while waiting for status
- Resolves: #14
Diffstat (limited to 'systray.go')
-rw-r--r-- | systray.go | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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")) |