feat: add hide menu bar items on macOS
This commit is contained in:
parent
b4da701080
commit
d32e17e70b
1 changed files with 12 additions and 0 deletions
|
@ -133,6 +133,18 @@ function initMenuBar(win: BrowserWindow) {
|
||||||
app.quit();
|
app.quit();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
...(process.platform === "darwin"
|
||||||
|
? [
|
||||||
|
{
|
||||||
|
label: "Hide",
|
||||||
|
role: "hide" as const
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "Hide others",
|
||||||
|
role: "hideOthers" as const
|
||||||
|
}
|
||||||
|
]
|
||||||
|
: []),
|
||||||
{
|
{
|
||||||
label: "Quit",
|
label: "Quit",
|
||||||
accelerator: wantCtrlQ ? "CmdOrCtrl+Q" : void 0,
|
accelerator: wantCtrlQ ? "CmdOrCtrl+Q" : void 0,
|
||||||
|
|
Reference in a new issue