Skip to content

Commit bd3a6af

Browse files
author
Stefania
authored
Merge pull request #242 from arduino/fix_ls
Prevent delays from displaying the trayicon
2 parents 689da19 + dc9fc17 commit bd3a6af

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

main.go

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ package main
66
import (
77
"encoding/json"
88
"flag"
9-
"fmt"
109
"os"
1110
"os/user"
1211
"path/filepath"
@@ -98,7 +97,8 @@ func main() {
9897
os.Exit(0)
9998
}
10099

101-
fmt.Println(*hibernate)
100+
// Launch systray
101+
go setupSysTray()
102102

103103
if *hibernate == false {
104104
// autoextract self
@@ -288,7 +288,9 @@ func main() {
288288
}
289289
}()
290290
}
291-
setupSysTray()
291+
292+
// Block forever until the application is shut down
293+
select {}
292294
}
293295

294296
var homeTemplate = template.Must(template.New("home").Parse(homeTemplateHtml))

0 commit comments

Comments
 (0)