remove hide in tray
This commit is contained in:
parent
31c17ba21a
commit
653a5177e3
@ -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'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user