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
feat: allow MenuItems to work optionally when hidden #16853
Conversation
@@ -302,8 +307,7 @@ - (void)addItemToMenu:(NSMenu*)menu | |||
} | |||
|
|||
// Called before the menu is to be displayed to update the state (enabled, | |||
// radio, etc) of each item in the menu. Also will update the title if |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
comment removed as it's a remnant of dead code previously removed in #14939
3a5cdac
to
d69c03f
Compare
13eec15
to
598fb1f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
d212262
to
d2770a1
Compare
d2770a1
to
cb3daa7
Compare
Looks like you're gonna need one of those lovely Forward Declarations 😢
|
@MarshallOfSound oops yeah i was planning on fixing this yesterday but then gclient died on me; fixing soon :) |
Release Notes Persisted
|
I have automatically backported this PR to "5-0-x", please check out #17175 |
Description of Change
Resolves #16747.
This PR enables MenuItems on macOS to work optionally when
visible: false
. using a newMenuItem
optionacceleratorWorksWhenHidden
. The default of this new options is true, to match behavior on Windows and Linux, but since native macOS development allows for this to be turned off, this option allows that to be done.Example:
cc @MarshallOfSound @zcbenz
Checklist
npm test
passesRelease Notes
Notes: Added an option to enable
MenuItems
on macOS to work optionally whenvisible: false
.