hide dock icon if window closes

This commit is contained in:
Jeffrey Morgan
2023-08-02 11:05:29 -04:00
parent 8f8b6288ac
commit 6fbb380076
2 changed files with 5 additions and 5 deletions

View File

@@ -78,6 +78,11 @@ function firstRunWindow() {
welcomeWindow.loadURL(MAIN_WINDOW_WEBPACK_ENTRY)
welcomeWindow.on('ready-to-show', () => welcomeWindow.show())
welcomeWindow.on('closed', () => {
if (process.platform === 'darwin') {
app.dock.hide()
}
})
}
let tray: Tray | null = null