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
Currently to set the icon on Windows one must read the file bytes, and then this library writes those bytes back to disk in order to call the LoadImage function. I am suspecting this to be the reason why the icon sometimes doesn't show up in my application. Could the winTray.setIcon method be made public through a simple wrapper function? I would be happy to contribute a PR.
The text was updated successfully, but these errors were encountered:
It seems unlikely that this is the cause of your icon not appearing because this is a well-trod code path that works for many people before.
More likely it would relate to file format or size, you can see an example in the repo.
The handle based API you're looking to expose would have to be for windows only because it won't compile on any other platform. If you think it is valuable then go ahead - but I doubt very much this solves your problem.
Note also that with a GUI app it is a bad idea to reference relative files in your code because once it is compiled the file will go away - that is why we normally deal with []byte instead of *File.
Currently to set the icon on Windows one must read the file bytes, and then this library writes those bytes back to disk in order to call the
LoadImage
function. I am suspecting this to be the reason why the icon sometimes doesn't show up in my application. Could thewinTray.setIcon
method be made public through a simple wrapper function? I would be happy to contribute a PR.The text was updated successfully, but these errors were encountered: