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()} } ]