Conversation
Member
ckerr
approved these changes
Oct 28, 2025
3 tasks
jkleinsc
approved these changes
Oct 28, 2025
|
Release Notes Persisted
|
This was referenced Oct 28, 2025
Contributor
|
I have automatically backported this PR to "38-x-y", please check out #48710 |
Contributor
|
I have automatically backported this PR to "39-x-y", please check out #48711 |
Contributor
|
I have automatically backported this PR to "37-x-y", please check out #48712 |
trop bot
added a commit
that referenced
this pull request
Nov 6, 2025
This reverts commit 0cb4fdd. Co-authored-by: Keeley Hammond <khammond@slack-corp.com>
VerteDinde
added a commit
that referenced
this pull request
Nov 6, 2025
VerteDinde
added a commit
that referenced
this pull request
Nov 6, 2025
trop bot
added a commit
that referenced
this pull request
Nov 6, 2025
This reverts commit 0cb4fdd. Co-authored-by: Keeley Hammond <khammond@slack-corp.com>
VerteDinde
added a commit
that referenced
this pull request
Nov 6, 2025
VerteDinde
pushed a commit
that referenced
this pull request
Nov 7, 2025
* fix: allow disabling all `NSMenuItems` (#48598) fix: allow disabling all NSMenuItems * fix: add guard for type --------- Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com>
trop bot
added a commit
that referenced
this pull request
Nov 7, 2025
fix: allow disabling all NSMenuItems Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com>
trop bot
added a commit
that referenced
this pull request
Nov 7, 2025
fix: allow disabling all NSMenuItems Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com>
trop bot
added a commit
that referenced
this pull request
Nov 7, 2025
fix: allow disabling all NSMenuItems Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com>
VerteDinde
added a commit
that referenced
this pull request
Nov 7, 2025
codebytere
added a commit
that referenced
this pull request
Nov 7, 2025
* fix: allow disabling all `NSMenuItems` (#48598) fix: allow disabling all NSMenuItems Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com> * fix: add guard for type Co-authored-by: George Xu <george.xu@slack-corp.com> --------- Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com> Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com> Co-authored-by: George Xu <george.xu@slack-corp.com>
codebytere
added a commit
that referenced
this pull request
Nov 7, 2025
* fix: allow disabling all `NSMenuItems` (#48598) fix: allow disabling all NSMenuItems Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com> * fix: add guard for type Co-authored-by: George Xu <george.xu@slack-corp.com> --------- Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com> Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com> Co-authored-by: George Xu <george.xu@slack-corp.com>
codebytere
added a commit
that referenced
this pull request
Nov 7, 2025
* fix: allow disabling all `NSMenuItems` (#48598) fix: allow disabling all NSMenuItems Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com> * fix: add guard for type Co-authored-by: George Xu <george.xu@slack-corp.com> --------- Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com> Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com> Co-authored-by: George Xu <george.xu@slack-corp.com>
jkleinsc
pushed a commit
that referenced
this pull request
Nov 14, 2025
* fix: add guard for type Co-authored-by: George Xu <george.xu@slack-corp.com> * fix(reland): allow disabling all `NSMenuItems` (#48795) * fix: allow disabling all `NSMenuItems` (#48598) fix: allow disabling all NSMenuItems * fix: add guard for type --------- Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com> (cherry picked from commit 38be633) --------- Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com> Co-authored-by: George Xu <george.xu@slack-corp.com> Co-authored-by: George Xu <33054982+georgexu99@users.noreply.github.com> Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com>
nilayarya
pushed a commit
to nilayarya/electron
that referenced
this pull request
Nov 21, 2025
fix: allow disabling all NSMenuItems
nilayarya
pushed a commit
to nilayarya/electron
that referenced
this pull request
Nov 21, 2025
…#48794) Revert "fix: allow disabling all `NSMenuItems` (electron#48598)" This reverts commit 0cb4fdd.
nilayarya
pushed a commit
to nilayarya/electron
that referenced
this pull request
Nov 21, 2025
* fix: allow disabling all `NSMenuItems` (electron#48598) fix: allow disabling all NSMenuItems * fix: add guard for type --------- Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com>
nilayarya
added a commit
to nilayarya/electron
that referenced
this pull request
Nov 21, 2025
fix: allow disabling all NSMenuItems
nilayarya
added a commit
to nilayarya/electron
that referenced
this pull request
Nov 21, 2025
…#48794) Revert "fix: allow disabling all `NSMenuItems` (electron#48598)" This reverts commit 0cb4fdd.
nilayarya
added a commit
to nilayarya/electron
that referenced
this pull request
Nov 21, 2025
* fix: allow disabling all `NSMenuItems` (electron#48598) fix: allow disabling all NSMenuItems * fix: add guard for type --------- Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com>
nilayarya
added a commit
to nilayarya/electron
that referenced
this pull request
Nov 21, 2025
fix: allow disabling all NSMenuItems
nilayarya
added a commit
to nilayarya/electron
that referenced
this pull request
Nov 21, 2025
…#48794) Revert "fix: allow disabling all `NSMenuItems` (electron#48598)" This reverts commit 0cb4fdd.
nilayarya
added a commit
to nilayarya/electron
that referenced
this pull request
Nov 21, 2025
* fix: allow disabling all `NSMenuItems` (electron#48598) fix: allow disabling all NSMenuItems * fix: add guard for type --------- Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com>
3 tasks
3 tasks
3 tasks
4 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description of Change
Closes #46505
Closes #43130
Reworks menu item validation to manual management and not the confusing combination of automatic and manual management that's been in use up to now. As it stood, menu items with default system-defined selectors didn't call
validateUserInterfaceItemas this class was not where those were defined.This was previously tried in #46307, but with the missing understanding that disabling
autoenablesItemsmeantvalidateUserInterfaceItemwould no longer be called under any circumstances, and this we need to now shift this logic tomenuWillShowand call it ourselves.Confirmed not to regress #46501, #46593, or #46485
Checklist
npm testpassesRelease Notes
Notes: Fixed an issue that menu items on macOS could not be disabled under all circumstances.