1
1
mirror of https://github.com/Eugeny/tabby.git synced 2024-11-22 11:52:03 +03:00

fixed #7162, fixed #7309, fixed #6812 - "hide on focus loss" not working with multiple windows/modals

This commit is contained in:
Eugene Pankov 2023-04-16 14:08:27 +02:00
parent b144331396
commit 84b0e13dc8
No known key found for this signature in database
GPG Key ID: 5896FCBBDD1CF4F4

View File

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