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