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 not highlighting on empty menu #34173

Merged
merged 1 commit into from May 12, 2022

Conversation

codebytere
Copy link
Member

Description of Change

Closes #32111.

Ensures that the menu controller not only exists, but has a non-zero number of items before choosing to pass the click item to the superclass.

Regressed in 47a38da.

Checklist

Release Notes

Notes: Fixed an issue where tray items wouldn't highlight in some scenarios on macOS.

@codebytere codebytere added semver/patch backwards-compatible bug fixes target/16-x-y labels May 11, 2022
@electron-cation electron-cation bot added the new-pr 🌱 PR opened in the last 24 hours label May 11, 2022
@codebytere codebytere force-pushed the fix-empty-menu-highlight branch 2 times, most recently from 1c9aba1 to 79c114f Compare May 11, 2022 13:40
@electron-cation electron-cation bot removed the new-pr 🌱 PR opened in the last 24 hours label May 12, 2022
@codebytere codebytere merged commit a810369 into main May 12, 2022
@codebytere codebytere deleted the fix-empty-menu-highlight branch May 12, 2022 14:14
@release-clerk
Copy link

release-clerk bot commented May 12, 2022

Release Notes Persisted

Fixed an issue where tray items wouldn't highlight in some scenarios on macOS.

@trop
Copy link
Contributor

trop bot commented May 12, 2022

I have automatically backported this PR to "16-x-y", please check out #34205

@trop
Copy link
Contributor

trop bot commented May 12, 2022

I have automatically backported this PR to "17-x-y", please check out #34206

@trop trop bot removed the target/16-x-y label May 12, 2022
@trop
Copy link
Contributor

trop bot commented May 12, 2022

I have automatically backported this PR to "18-x-y", please check out #34207

@trop
Copy link
Contributor

trop bot commented May 12, 2022

I have automatically backported this PR to "19-x-y", please check out #34208

@trop trop bot removed the target/17-x-y label May 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver/patch backwards-compatible bug fixes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Menu.buildFromTemplate([]); click tray icon is not highlight
2 participants