From 2445ac94205c93187f4f8d1c3901d7f84e212dfb Mon Sep 17 00:00:00 2001 From: Ruben Pollan Date: Thu, 24 Jan 2019 19:37:46 +0100 Subject: [bug] wait until the systray is initalized to start the systray loop - Resolves: #106 --- pkg/systray/run.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkg/systray/run.go') diff --git a/pkg/systray/run.go b/pkg/systray/run.go index 8877d64..2a513d8 100644 --- a/pkg/systray/run.go +++ b/pkg/systray/run.go @@ -24,7 +24,7 @@ import ( ) func Run(conf *Config) { - bt := bmTray{conf: conf} + bt := bmTray{conf: conf, waitCh: make(chan bool)} go initialize(conf, &bt) bt.start() } -- cgit v1.2.3