File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -106,8 +106,10 @@ func setupSysTrayReal() {
106
106
systray .AddSeparator ()
107
107
mUrl := systray .AddMenuItem ("Go to Arduino Create" , "Arduino Create" )
108
108
mDebug := systray .AddMenuItem ("Open Debug Console" , "Debug console" )
109
- systray .AddSeparator ()
110
109
mPause := systray .AddMenuItem ("Pause Plugin" , "" )
110
+ systray .AddSeparator ()
111
+ mQuit := systray .AddMenuItem ("Quit Plugin" , "" )
112
+
111
113
var mConfigCheckbox []* systray.MenuItem
112
114
113
115
configs := getConfigs ()
@@ -150,11 +152,11 @@ func setupSysTrayReal() {
150
152
restart ("" )
151
153
}()
152
154
153
- // go func() {
154
- // <-mQuit.ClickedCh
155
- // systray.Quit()
156
- // exit()
157
- // }()
155
+ go func () {
156
+ <- mQuit .ClickedCh
157
+ systray .Quit ()
158
+ exit ()
159
+ }()
158
160
159
161
go func () {
160
162
for {
You can’t perform that action at this time.
0 commit comments