fix: trigger about panel for about role on on win (#23687)
This commit is contained in:
parent
5ed2512881
commit
78d74bf8b4
2 changed files with 3 additions and 2 deletions
|
@ -69,6 +69,7 @@ a `type`.
|
||||||
The `role` property can have following values:
|
The `role` property can have following values:
|
||||||
|
|
||||||
* `undo`
|
* `undo`
|
||||||
|
* `about` - Trigger a native about panel (custom message box on Window, which does not provide its own).
|
||||||
* `redo`
|
* `redo`
|
||||||
* `cut`
|
* `cut`
|
||||||
* `copy`
|
* `copy`
|
||||||
|
@ -94,7 +95,6 @@ The `role` property can have following values:
|
||||||
The following additional roles are available on _macOS_:
|
The following additional roles are available on _macOS_:
|
||||||
|
|
||||||
* `appMenu` - Whole default "App" menu (About, Services, etc.)
|
* `appMenu` - Whole default "App" menu (About, Services, etc.)
|
||||||
* `about` - Map to the `orderFrontStandardAboutPanel` action.
|
|
||||||
* `hide` - Map to the `hide` action.
|
* `hide` - Map to the `hide` action.
|
||||||
* `hideOthers` - Map to the `hideOtherApplications` action.
|
* `hideOthers` - Map to the `hideOtherApplications` action.
|
||||||
* `unhide` - Map to the `unhideAllApplications` action.
|
* `unhide` - Map to the `unhideAllApplications` action.
|
||||||
|
|
|
@ -10,7 +10,8 @@ const roles = {
|
||||||
about: {
|
about: {
|
||||||
get label () {
|
get label () {
|
||||||
return isLinux ? 'About' : `About ${app.name}`;
|
return isLinux ? 'About' : `About ${app.name}`;
|
||||||
}
|
},
|
||||||
|
...(isWindows && { appMethod: 'showAboutPanel' })
|
||||||
},
|
},
|
||||||
close: {
|
close: {
|
||||||
label: isMac ? 'Close Window' : 'Close',
|
label: isMac ? 'Close Window' : 'Close',
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue