From 76f3e895ad270004e2320192d3660b7f36ddb80b Mon Sep 17 00:00:00 2001 From: Ruben Pollan Date: Fri, 1 Feb 2019 00:25:41 +0100 Subject: [bug] don't block the systray with the about notification Let's send the notification to another goroutine. - Resolves: #112 --- pkg/systray/systray.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkg') diff --git a/pkg/systray/systray.go b/pkg/systray/systray.go index a575568..c99555c 100644 --- a/pkg/systray/systray.go +++ b/pkg/systray/systray.go @@ -139,7 +139,7 @@ func (bt *bmTray) loop(bm bitmask.Bitmask, notify *notificator, as bitmask.Autos } else if bitmaskVersion != "" { versionStr = fmt.Sprintf("%s (bitmaskd %s)", bt.conf.Version, bitmaskVersion) } - bt.notify.about(versionStr) + go bt.notify.about(versionStr) case <-bt.mQuit.ClickedCh: err := bt.autostart.Disable() -- cgit v1.2.3