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() {
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 {
You can’t perform that action at this time.
0 commit comments