Skip to content

Commit

Permalink
fix: trigger about panel for about role on on win (#23713)
Browse files Browse the repository at this point in the history
Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com>
  • Loading branch information
trop[bot] and codebytere committed May 26, 2020
1 parent 7deaef0 commit bef1325
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/api/menu-item.md
Expand Up @@ -69,6 +69,7 @@ a `type`.
The `role` property can have following values:

* `undo`
* `about` - Trigger a native about panel (custom message box on Window, which does not provide its own).
* `redo`
* `cut`
* `copy`
Expand All @@ -94,7 +95,6 @@ The `role` property can have following values:
The following additional roles are available on _macOS_:

* `appMenu` - Whole default "App" menu (About, Services, etc.)
* `about` - Map to the `orderFrontStandardAboutPanel` action.
* `hide` - Map to the `hide` action.
* `hideOthers` - Map to the `hideOtherApplications` action.
* `unhide` - Map to the `unhideAllApplications` action.
Expand Down
3 changes: 2 additions & 1 deletion lib/browser/api/menu-item-roles.js
Expand Up @@ -10,7 +10,8 @@ const roles = {
about: {
get label () {
return isLinux ? 'About' : `About ${app.name}`;
}
},
...(isWindows && { appMethod: 'showAboutPanel' })
},
close: {
label: isMac ? 'Close Window' : 'Close',
Expand Down

0 comments on commit bef1325

Please sign in to comment.