mirror of
https://github.com/electron-vite/electron-vite-vue
synced 2025-09-02 04:27:52 +08:00
quit app when close all window
This commit is contained in:
@@ -25,4 +25,7 @@ function bootstrap() {
|
||||
|
||||
app.whenReady().then(bootstrap)
|
||||
|
||||
app.on('window-all-closed', () => { win = null })
|
||||
app.on('window-all-closed', () => {
|
||||
win = null
|
||||
app.quit()
|
||||
})
|
||||
|
Reference in New Issue
Block a user