You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I ran into this yesterday on an app that was working fine for MacOS, but wouldn't work on Windows. I found this article that indicated it seems to break if you try to do anything to the menu item before the icon is set.
For me, it was originally:
clientsMenuItem:=systray.AddMenuItem("Clients", "Clients for which app is responsible")
systray.SetIcon(assets.Checkicon)
systray.SetTitle("appname")
systray.SetTooltip("app desc")
and it would give the same error you're seeing. I rearranged it to:
systray.SetIcon(assets.Checkicon)
systray.SetTitle("appname")
systray.SetTooltip("app desc")
clientsMenuItem:=systray.AddMenuItem("Clients", "Clients for which app is responsible")
and it worked. Kind of strange, but there's something expected on the menu item set from those functions that's not immediately available or surfaced as an error shy of that obscure one you have in your logs.
my Mac test is OK
Error report in Windows :(
What happened?
Thank you
the project link:
https://github.com/jsxxzy/inettray
The text was updated successfully, but these errors were encountered: