Skip to content

Commit

Permalink
fixed #7162, fixed #7309, fixed #6812 - "hide on focus loss" not work…
Browse files Browse the repository at this point in the history
…ing with multiple windows/modals
  • Loading branch information
Eugeny committed Apr 16, 2023
1 parent b144331 commit 84b0e13
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/lib/window.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,11 @@ export class Window {
})

this.window.on('blur', () => {
if ((this.configStore.appearance?.dock ?? 'off') !== 'off' && this.configStore.appearance?.dockHideOnBlur) {
if (
(this.configStore.appearance?.dock ?? 'off') !== 'off' &&
this.configStore.appearance?.dockHideOnBlur &&
!BrowserWindow.getFocusedWindow()
) {
this.hide()
}
})
Expand Down

0 comments on commit 84b0e13

Please sign in to comment.