fixes #1006 Through close event when platform is darwin
This commit is contained in:
parent
4fe6949255
commit
5c36b47f23
|
@ -251,14 +251,14 @@ async function createWindow() {
|
|||
mainWindow!.setSkipTaskbar(false)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// Minimize to tray
|
||||
mainWindow!.on('close', event => {
|
||||
mainWindow!.hide()
|
||||
mainWindow!.setSkipTaskbar(true)
|
||||
event.preventDefault()
|
||||
})
|
||||
// Minimize to tray
|
||||
mainWindow!.on('close', event => {
|
||||
mainWindow!.hide()
|
||||
mainWindow!.setSkipTaskbar(true)
|
||||
event.preventDefault()
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
// Do not lower the rendering priority of Chromium when background
|
||||
|
|
Loading…
Reference in New Issue