Skip to content

Commit d88192d

Browse files
committed
TrayIcon Changes
1 parent fcb613a commit d88192d

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

trayicon.go

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,9 @@ func getConfigs() []ConfigIni {
102102
func setupSysTrayReal() {
103103

104104
systray.SetIcon(icon.GetIcon())
105-
mUrl := systray.AddMenuItem("Go to Arduino Create", "Arduino Create")
106-
mDebug := systray.AddMenuItem("Open debug console", "Debug console")
107-
menuVer := systray.AddMenuItem("Agent version "+version+"-"+git_revision, "")
105+
mUrl := systray.AddMenuItem("Open Robotwala", "Arduino Create")
106+
// mDebug := systray.AddMenuItem("Open debug console", "Debug console")
107+
// menuVer := systray.AddMenuItem("Agent version "+version+"-"+git_revision, "")
108108
mPause := systray.AddMenuItem("Pause Plugin", "")
109109
var mConfigCheckbox []*systray.MenuItem
110110

@@ -124,7 +124,7 @@ func setupSysTrayReal() {
124124
}
125125
//mQuit := systray.AddMenuItem("Quit Plugin", "")
126126

127-
menuVer.Disable()
127+
// menuVer.Disable()
128128

129129
for i, _ := range mConfigCheckbox {
130130
go func(v int) {
@@ -154,19 +154,19 @@ func setupSysTrayReal() {
154154
// exit()
155155
// }()
156156

157-
go func() {
158-
for {
159-
<-mDebug.ClickedCh
160-
logAction("log on")
161-
open.Start("http://127.0.0.1" + port)
162-
}
163-
}()
157+
// go func() {
158+
// for {
159+
// <-mDebug.ClickedCh
160+
// logAction("log on")
161+
// open.Start("http://127.0.0.1" + port)
162+
// }
163+
// }()
164164

165165
// We can manipulate the systray in other goroutines
166166
go func() {
167167
for {
168168
<-mUrl.ClickedCh
169-
open.Start("http://create.arduino.cc")
169+
open.Start("http://app.robotwala.org")
170170
}
171171
}()
172172
}

0 commit comments

Comments
 (0)