satisfy eslint

This commit is contained in:
Xinto 2023-09-26 15:19:59 +04:00
parent 676473d9da
commit 4058eeb1f9

View file

@ -183,34 +183,38 @@ function initMenuBar(win: BrowserWindow) {
app.quit(); app.quit();
} }
}, },
...(!isDarwin ? [] : [ ...(!isDarwin
{ ? []
type: "separator" : ([
}, {
{ type: "separator"
label: "Settings", },
accelerator: "CmdOrCtrl+,", {
async click() { label: "Settings",
mainWin.webContents.executeJavaScript("Vencord.Webpack.Common.SettingsRouter.open('My Account')") accelerator: "CmdOrCtrl+,",
} async click() {
}, mainWin.webContents.executeJavaScript(
{ "Vencord.Webpack.Common.SettingsRouter.open('My Account')"
type: "separator" );
}, }
{ },
label: "Hide Vesktop", //Should probably remove the label, but it says "Hide VencordDesktop" instead of "Hide Vesktop" {
role: "hide" type: "separator"
}, },
{ {
role: "hideOthers" label: "Hide Vesktop", // Should probably remove the label, but it says "Hide VencordDesktop" instead of "Hide Vesktop"
}, role: "hide"
{ },
role: "unhide", {
}, role: "hideOthers"
{ },
type: "separator" {
} role: "unhide"
] satisfies MenuItemList), },
{
type: "separator"
}
] satisfies MenuItemList)),
{ {
label: "Quit", label: "Quit",
accelerator: wantCtrlQ ? "CmdOrCtrl+Q" : void 0, accelerator: wantCtrlQ ? "CmdOrCtrl+Q" : void 0,