From a70364facf809f8a2a30ec718f3be82270f06a6f Mon Sep 17 00:00:00 2001 From: Araxeus <78568641+Araxeus@users.noreply.github.com> Date: Tue, 26 Oct 2021 19:23:10 +0300 Subject: [PATCH] lint --- index.js | 6 +++--- menu.js | 7 ++++--- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/index.js b/index.js index 4c8b5418..0a5b1f55 100644 --- a/index.js +++ b/index.js @@ -348,10 +348,10 @@ app.on("ready", () => { }); } - if(config.get("options.hideMenu") && !config.get("options.hideMenuWarned")) { + if (config.get("options.hideMenu") && !config.get("options.hideMenuWarned")) { electron.dialog.showMessageBox(mainWindow, { - type: 'info', - title: 'Hide Menu Enabled', message: "Menu is hidden, use 'Alt' to show it (or 'Escape' if using in-app-menu)" + type: 'info', title: 'Hide Menu Enabled', + message: "Menu is hidden, use 'Alt' to show it (or 'Escape' if using in-app-menu)" }); config.set("options.hideMenuWarned", true); } diff --git a/menu.js b/menu.js index fb48c31b..0a62249b 100644 --- a/menu.js +++ b/menu.js @@ -95,10 +95,11 @@ const mainMenuTemplate = (win) => { checked: config.get("options.hideMenu"), click: (item) => { config.set("options.hideMenu", item.checked); - if(item.checked && !config.get("options.hideMenuWarned")) { + if (item.checked && !config.get("options.hideMenuWarned")) { dialog.showMessageBox(win, { - type: 'info', - title: 'Hide Menu Enabled', message: "Menu will be hidden on next launch, use 'Alt' to show it (or 'Escape' if using in-app-menu)"}); + type: 'info', title: 'Hide Menu Enabled', + message: "Menu will be hidden on next launch, use 'Alt' to show it (or 'Escape' if using in-app-menu)" + }); } }, },