add dock hide on blur option

This commit is contained in:
Gobius Dolhain
2020-04-20 19:01:10 +02:00
parent b8d9f6442a
commit d759104c76
3 changed files with 16 additions and 0 deletions

View File

@@ -103,6 +103,12 @@ export class Window {
}
})
this.window.on('blur',() => {
if (this.configStore.appearance?.dockHideOnBlur) {
this.hide()
}
})
this.window.loadURL(`file://${app.getAppPath()}/dist/index.html?${this.window.id}`, { extraHeaders: 'pragma: no-cache\n' })
if (process.platform !== 'darwin') {