From 4058eeb1f9bdcf32856b7692eb67d84707de3887 Mon Sep 17 00:00:00 2001 From: Xinto Date: Tue, 26 Sep 2023 15:19:59 +0400 Subject: [PATCH] satisfy eslint --- src/main/mainWindow.ts | 60 ++++++++++++++++++++++-------------------- 1 file changed, 32 insertions(+), 28 deletions(-) diff --git a/src/main/mainWindow.ts b/src/main/mainWindow.ts index 633496d..57e53e8 100644 --- a/src/main/mainWindow.ts +++ b/src/main/mainWindow.ts @@ -183,34 +183,38 @@ function initMenuBar(win: BrowserWindow) { app.quit(); } }, - ...(!isDarwin ? [] : [ - { - type: "separator" - }, - { - label: "Settings", - 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" - }, - { - role: "hideOthers" - }, - { - role: "unhide", - }, - { - type: "separator" - } - ] satisfies MenuItemList), + ...(!isDarwin + ? [] + : ([ + { + type: "separator" + }, + { + label: "Settings", + 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" + }, + { + role: "hideOthers" + }, + { + role: "unhide" + }, + { + type: "separator" + } + ] satisfies MenuItemList)), { label: "Quit", accelerator: wantCtrlQ ? "CmdOrCtrl+Q" : void 0,