File tree 3 files changed +11
-1
lines changed
3 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -241,8 +241,10 @@ func checkCmd(m []byte) {
241
241
go broadcast (s )
242
242
} else if strings .HasPrefix (sl , "restart" ) {
243
243
log .Println ("Received restart from the daemon. Why? Boh" )
244
+ quitSystray ()
244
245
restart ("" )
245
246
} else if strings .HasPrefix (sl , "exit" ) {
247
+ quitSystray ()
246
248
exit ()
247
249
} else if strings .HasPrefix (sl , "memstats" ) {
248
250
memoryStats ()
Original file line number Diff line number Diff line change @@ -34,8 +34,8 @@ import (
34
34
"runtime"
35
35
36
36
log "github.com/Sirupsen/logrus"
37
- "github.com/facchinm/systray"
38
37
"github.com/facchinm/systray/example/icon"
38
+ "github.com/getlantern/systray"
39
39
"github.com/skratchdot/open-golang/open"
40
40
"go.bug.st/serial.v1"
41
41
)
@@ -117,6 +117,7 @@ func setupSysTrayHibernate() {
117
117
<- mOpen .ClickedCh
118
118
* hibernate = false
119
119
log .Println ("Restart for hubernation" )
120
+ systray .Quit ()
120
121
restart ("" )
121
122
}()
122
123
@@ -126,3 +127,7 @@ func setupSysTrayHibernate() {
126
127
exit ()
127
128
}()
128
129
}
130
+
131
+ func quitSystray () {
132
+ systray .Quit ()
133
+ }
Original file line number Diff line number Diff line change @@ -36,3 +36,6 @@ func setupSysTray() {
36
36
func addRebootTrayElement () {
37
37
select {}
38
38
}
39
+
40
+ func quitSystray () {
41
+ }
You can’t perform that action at this time.
0 commit comments