Этот коммит содержится в:
Igor V Belousov 2019-12-27 12:16:43 +03:00
родитель c60a570bf7
Коммит ff11b94b43

Просмотреть файл

@ -45,7 +45,7 @@ func main() {
icon, err := walk.NewIconFromResourceId(9) icon, err := walk.NewIconFromResourceId(9)
err_fatal(err) err_fatal(err)
ni, err := walk.NewNotifyIcon() ni, err := walk.NewNotifyIcon(mw)
err_fatal(err) err_fatal(err)
defer ni.Dispose() defer ni.Dispose()
@ -69,7 +69,7 @@ func main() {
old_t = fmt.Sprint(time.Now().Format("_2 15:04:05")) old_t = fmt.Sprint(time.Now().Format("_2 15:04:05"))
err_fatal(ni.ShowCustom( err_fatal(ni.ShowCustom(
"IP Checker", "IP Checker",
old_t+" Current IP is "+old_ip)) old_t+" Current IP is "+old_ip, icon))
err_fatal(ni.SetToolTip(old_t + " Current IP is " + old_ip)) err_fatal(ni.SetToolTip(old_t + " Current IP is " + old_ip))
go func() { go func() {
@ -81,7 +81,7 @@ func main() {
t := fmt.Sprint(time.Now().Format("_2 15:04:05")) t := fmt.Sprint(time.Now().Format("_2 15:04:05"))
err_fatal(ni.ShowCustom( err_fatal(ni.ShowCustom(
"IP Checker", "IP Checker",
t+" - "+ip+"\n"+old_t+" - "+old_ip)) t+" - "+ip+"\n"+old_t+" - "+old_ip, icon))
err_fatal(ni.SetToolTip(t + " - " + ip + "\n" + old_t + " - " + old_ip)) err_fatal(ni.SetToolTip(t + " - " + ip + "\n" + old_t + " - " + old_ip))
old_ip = ip old_ip = ip