|
|
@ -837,10 +837,6 @@ function createWindow() { |
|
|
|
myWindow.on('closed', function () { |
|
|
|
myWindow.on('closed', function () { |
|
|
|
myWindow = null |
|
|
|
myWindow = null |
|
|
|
}) |
|
|
|
}) |
|
|
|
myWindow.on('minimize', function (event) { |
|
|
|
|
|
|
|
event.preventDefault() |
|
|
|
|
|
|
|
myWindow.hide() |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
ipcMain.handle('dark-mode:toggle', () => { |
|
|
|
ipcMain.handle('dark-mode:toggle', () => { |
|
|
|
if (nativeTheme.shouldUseDarkColors) { |
|
|
|
if (nativeTheme.shouldUseDarkColors) { |
|
|
|
nativeTheme.themeSource = 'light' |
|
|
|
nativeTheme.themeSource = 'light' |
|
|
@ -882,10 +878,6 @@ function createNewWindow() { |
|
|
|
newWindow.on('closed', function () { |
|
|
|
newWindow.on('closed', function () { |
|
|
|
newWindow = null |
|
|
|
newWindow = null |
|
|
|
}) |
|
|
|
}) |
|
|
|
newWindow.on('minimize', function (event) { |
|
|
|
|
|
|
|
event.preventDefault() |
|
|
|
|
|
|
|
newWindow.hide() |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
ipcMain.handle('dark-mode:toggle', () => { |
|
|
|
ipcMain.handle('dark-mode:toggle', () => { |
|
|
|
if (nativeTheme.shouldUseDarkColors) { |
|
|
|
if (nativeTheme.shouldUseDarkColors) { |
|
|
|
nativeTheme.themeSource = 'light' |
|
|
|
nativeTheme.themeSource = 'light' |
|
|
|