Skip to content

fix(windows): keep tray window alive when initial registration fails#293

Merged
amrbashir merged 1 commit intotauri-apps:devfrom
Slinetrac:fix/tray-icon-create
Jan 3, 2026
Merged

fix(windows): keep tray window alive when initial registration fails#293
amrbashir merged 1 commit intotauri-apps:devfrom
Slinetrac:fix/tray-icon-create

Conversation

@Slinetrac
Copy link
Contributor

@Slinetrac Slinetrac commented Jan 2, 2026

Closes #171.

Handle Windows tray icon creation when the taskbar is not ready by keeping the message window alive and re-registering on TaskbarCreated.

Tested with examples and works as expected.

anyduck

This comment was marked as resolved.

@Slinetrac Slinetrac force-pushed the fix/tray-icon-create branch from 3a8b884 to ef2e99a Compare January 3, 2026 07:08
@Slinetrac
Copy link
Contributor Author

I also looked at how Qt implements it in C++, and they don't store whether the tray icon was successfully registered.

Thanks for the info! Addressed in ef2e99a.

@amrbashir amrbashir merged commit d3c2468 into tauri-apps:dev Jan 3, 2026
10 checks passed
@amrbashir
Copy link
Member

Thank you

@Slinetrac Slinetrac deleted the fix/tray-icon-create branch January 3, 2026 17:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Using windows task scheduler to start app, sometimes an error occurs

3 participants