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 tray icon when IconThemePath exists but is empty #365

Merged
merged 1 commit into from
Dec 17, 2024

Conversation

pol-rivero
Copy link
Contributor

It seems that my change in #362 caused a different bug. My bad, I should have done more testing.

Now that the IconThemePath is updated in item.py, sometimes it exists but is an empty string. The conditional in tray.py checks for empty strings in IconName and IconPixmap, but not IconThemePath, so I just added that check.

The diff is larger because line 169 (currently 172) looked a bit messy after adding the condition, so I preferred extracting the check to a function. Feel free to inline it if you don't like nested functions.

@nwg-piotr
Copy link
Owner

I believe it's OK, as I use electron hardly ever.

@nwg-piotr nwg-piotr merged commit b09cff5 into nwg-piotr:master Dec 17, 2024
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.

2 participants