diff --git a/electron.js b/electron.js index 18851006..65503e3f 100644 --- a/electron.js +++ b/electron.js @@ -837,10 +837,6 @@ function createWindow() { myWindow.on('closed', function () { myWindow = null }) - myWindow.on('minimize', function (event) { - event.preventDefault() - myWindow.hide() - }) ipcMain.handle('dark-mode:toggle', () => { if (nativeTheme.shouldUseDarkColors) { nativeTheme.themeSource = 'light' @@ -882,10 +878,6 @@ function createNewWindow() { newWindow.on('closed', function () { newWindow = null }) - newWindow.on('minimize', function (event) { - event.preventDefault() - newWindow.hide() - }) ipcMain.handle('dark-mode:toggle', () => { if (nativeTheme.shouldUseDarkColors) { nativeTheme.themeSource = 'light'