diff options
Diffstat (limited to 'systray.go')
-rw-r--r-- | systray.go | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -62,8 +62,7 @@ func (bt *bmTray) onReady() { go func() { ch := bt.bm.GetStatusCh() - status, err := bt.bm.GetStatus() - if err != nil { + if status, err := bt.bm.GetStatus(); err != nil { log.Printf("Error getting status: %v", err) } else { bt.changeStatus(status) |