macOS: don't exit when the last window is closed - fixes #4263

This commit is contained in:
Eugene Pankov 2021-08-15 14:42:48 +02:00
parent 03045eb952
commit 8d5b0fe863
No known key found for this signature in database
GPG key ID: 5896FCBBDD1CF4F4

View file

@ -26,9 +26,7 @@ app.on('activate', () => {
}
})
app.on('window-all-closed', () => {
app.quit()
})
app.on('window-all-closed', () => null)
process.on('uncaughtException' as any, err => {
console.log(err)