quit app when close all window

This commit is contained in:
草鞋没号 2021-09-09 09:50:18 +08:00
parent 1c6800ebe4
commit c89dd92d32

View File

@ -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()
})