Created
May 17, 2020 09:13
-
-
Save guaychou/c833eb737ae575c50160c0266503cc71 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func onReady() { | |
go func() { | |
var result string | |
for { | |
result = getData() | |
systray.SetTitle(result) | |
} | |
}() | |
systray.AddSeparator() | |
mQuit := systray.AddMenuItem("Quit", "Quits this app") | |
go func() { | |
for { | |
select { | |
case <-mQuit.ClickedCh: | |
systray.Quit() | |
return | |
} | |
} | |
}() | |
} | |
func onExit(){ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment