Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: reset image on template change #130

Merged
merged 2 commits into from
Apr 2, 2024

Conversation

pronebird
Copy link
Contributor

@pronebird pronebird commented Apr 2, 2024

Hi,

I have noticed that on macOS when alternating between colored tray icon and template image, sometimes the tray icon doesn't reflect the "template" setting. I have described that in more detail in tauri-apps/tauri#9332

This PR fixes this by tossing the same NSImage at tray after updating the isTemplate setting which forces the icon to repaint.

closes tauri-apps/tauri#9332

Copy link
Member

@amrbashir amrbashir left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your contributions

@amrbashir amrbashir changed the title Reset NSImage on template change fix: reset image on template change Apr 2, 2024
@amrbashir amrbashir merged commit 784e01e into tauri-apps:dev Apr 2, 2024
@pronebird pronebird deleted the reset-image-on-template-change branch April 3, 2024 08:44
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.

[bug] Race condition between set_icon and set_icon_as_template
2 participants