summaryrefslogtreecommitdiff
path: root/systray.go
diff options
context:
space:
mode:
Diffstat (limited to 'systray.go')
-rw-r--r--systray.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/systray.go b/systray.go
index 1281a77..7d24283 100644
--- a/systray.go
+++ b/systray.go
@@ -142,6 +142,13 @@ func (bt *bmTray) onReady() {
systray.Quit()
case <-signalCh:
systray.Quit()
+
+ case <-time.After(5 * time.Second):
+ if status, err := bt.bm.GetStatus(); err != nil {
+ log.Printf("Error getting status: %v", err)
+ } else {
+ bt.changeStatus(status)
+ }
}
}
}()