Skip to content

Bug: explorer.exe restarting results in missing icon #276

Description

@elibroftw

When testing our app, we found that the icon went missing without any exception in the logs. When I asked Claude to review, it said that when explorer.exe restarts, the tray icon does not handle TaskbarCreated broadcast.

I confirmed this is a bug on Windows 11 by clicking restart on explorer.exe in Task Manager.

The fix without WinUIEx changes it to use PInvoke + RegisterWindowMessage and recrete the winuiex notifyicon ourselves. Note that I'm calling it notifyicon (as per msft docs) even though Winuiex calls it TrayIcon

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions