From 653a5177e341c4f6fdfa5273f1892a9726b25405 Mon Sep 17 00:00:00 2001 From: AlphaX-Projects <77661270+AlphaX-Projects@users.noreply.github.com> Date: Wed, 2 Aug 2023 13:34:33 +0200 Subject: [PATCH] remove hide in tray --- electron.js | 8 -------- 1 file changed, 8 deletions(-) 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'