gabdube / native-windows-gui

A light windows GUI toolkit for rust
https://gabdube.github.io/native-windows-gui/
MIT License
1.96k stars 127 forks source link

System Tray Disappears When Explorer Crashes/Restarts #261

Open Ep0chalypse opened 2 years ago

Ep0chalypse commented 2 years ago

When explorer.exe crashes or restarts the icon disappears from the system tray. This happens on Windows 11 using rust stable-x86_64-pc-windows-msvc 1.63.0.

Steps to reproduce: Run either system_tray example

Then open Task Manager to the Processes tab and find "Windows Explorer" and right click and then select "restart"

After a few seconds the taskbar will reload and when you navigate to the system tray area the icon for the system_tray app will be gone but the application will still be running(you can see the process exe is still running if you look at Task Manager). No output is shown on the terminal you run the example from.