Skip to content

Commit d081593

Browse files
committed
Enable quit in normal mode
1 parent 223c38b commit d081593

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

trayicon.go

+8-6
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,10 @@ func setupSysTrayReal() {
106106
systray.AddSeparator()
107107
mUrl := systray.AddMenuItem("Go to Arduino Create", "Arduino Create")
108108
mDebug := systray.AddMenuItem("Open Debug Console", "Debug console")
109-
systray.AddSeparator()
110109
mPause := systray.AddMenuItem("Pause Plugin", "")
110+
systray.AddSeparator()
111+
mQuit := systray.AddMenuItem("Quit Plugin", "")
112+
111113
var mConfigCheckbox []*systray.MenuItem
112114

113115
configs := getConfigs()
@@ -150,11 +152,11 @@ func setupSysTrayReal() {
150152
restart("")
151153
}()
152154

153-
// go func() {
154-
// <-mQuit.ClickedCh
155-
// systray.Quit()
156-
// exit()
157-
// }()
155+
go func() {
156+
<-mQuit.ClickedCh
157+
systray.Quit()
158+
exit()
159+
}()
158160

159161
go func() {
160162
for {

0 commit comments

Comments
 (0)