remove hide in tray

This commit is contained in:
AlphaX-Projects 2023-08-02 13:34:33 +02:00
parent 31c17ba21a
commit 653a5177e3

View File

@ -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'