From ca6044790e5a8275e932e4d4f56f5df9a056d718 Mon Sep 17 00:00:00 2001 From: NAmorim Date: Tue, 28 Dec 2021 17:13:26 +0000 Subject: [PATCH] Small fixes --- electron-wrapper.js | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/electron-wrapper.js b/electron-wrapper.js index bd441a3080..611c0b6ab3 100644 --- a/electron-wrapper.js +++ b/electron-wrapper.js @@ -342,15 +342,6 @@ function createMainMenus() { } function createConsoleMenus () { - - function uiActive() { - if(mainWindow.isVisible()) { - return false - } else { - return true - } - } - const consoleTemplate = [ { label: 'File', @@ -390,7 +381,7 @@ function createConsoleMenus () { { label: 'Show UI', id: 'ui', - click () {mainWindow.isVisible() ? true : mainWindow.show()} + click () {mainWindow.isVisible() ? mainWindow.focus() : mainWindow.show()} } ]