tray-icon
tray-icon copied to clipboard
Error on close if TrayIcon not visible (windows)
When the last reference of TrayIcon gets dropped if it's currently not visible icon.set_visible(false), I get the following error: Error removing system tray icon
I pinpointed it's coming from here: https://github.com/tauri-apps/tray-icon/blob/06a887e8ebb1f59d903e41a33404a56156028d3a/src/platform_impl/windows/mod.rs#L575
Can this be changed so that we check if the tray icon is visible first before trying to delete it? I'd be more than happy to contribute if you give me some pointers.