aboutsummaryrefslogtreecommitdiffstats
path: root/example
diff options
context:
space:
mode:
authorfffw2015-02-08 12:00:42 +0800
committerfffw2015-02-08 13:33:11 +0800
commit27f2c8fb82d6f194fa127a5ec5437e2827b5d1ce (patch)
tree133b7e1794b49034f09baa9b8a8dc2ca661df5bd /example
parent3165416b3e09ab34f85ed82ddc31c018cac4e596 (diff)
downloadsystray-27f2c8fb82d6f194fa127a5ec5437e2827b5d1ce.tar.bz2
eliminate menu id when add a menu item
Diffstat (limited to 'example')
-rw-r--r--example/main.go14
1 files changed, 7 insertions, 7 deletions
diff --git a/example/main.go b/example/main.go
index bd59e70..29a3ebc 100644
--- a/example/main.go
+++ b/example/main.go
@@ -16,7 +16,7 @@ func onReady() {
systray.SetIcon(icon.Data)
systray.SetTitle("Awesome App")
systray.SetTooltip("Pretty awesome超级棒")
- mQuit := systray.AddMenuItem("quit", "Quit", "Quit the whole app")
+ mQuit := systray.AddMenuItem("Quit", "Quit the whole app")
go func() {
<-mQuit.Ch
systray.Quit()
@@ -28,12 +28,12 @@ func onReady() {
systray.SetIcon(icon.Data)
systray.SetTitle("Awesome App")
systray.SetTooltip("Pretty awesome棒棒嗒")
- mChange := systray.AddMenuItem("change", "Change Me", "Change Me")
- mChecked := systray.AddMenuItem("check", "Unchecked", "Check Me")
- mEnabled := systray.AddMenuItem("enable", "Enabled", "Enabled")
- systray.AddMenuItem("ignore", "Ignored", "Ignored")
- mUrl := systray.AddMenuItem("lantern", "Open Lantern.org", "my home")
- mQuit := systray.AddMenuItem("quit2", "退出", "Quit the whole app")
+ mChange := systray.AddMenuItem("Change Me", "Change Me")
+ mChecked := systray.AddMenuItem("Unchecked", "Check Me")
+ mEnabled := systray.AddMenuItem("Enabled", "Enabled")
+ systray.AddMenuItem("Ignored", "Ignored")
+ mUrl := systray.AddMenuItem("Open Lantern.org", "my home")
+ mQuit := systray.AddMenuItem("退出", "Quit the whole app")
for {
select {
case <-mChange.Ch: