Skip to content

Commit

Permalink
Merge pull request finos#2072 from NguyenTranHoangSym/SDA-4441
Browse files Browse the repository at this point in the history
SDA-4441: Restore focus on main after closing sub Windows
  • Loading branch information
NguyenTranHoangSym authored Jan 11, 2024
2 parents f888bf7 + a62eb6c commit d5647f0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/app/window-handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -643,6 +643,8 @@ export class WindowHandler {

// workaround for https://perzoinc.atlassian.net/browse/SDA-4251
this.mainWindow?.on('focus', () => {
const mainView = this.getMainView();
mainView?.webContents.focus();
if (
this.mainWindow &&
windowExists(this.mainWindow) &&
Expand Down

0 comments on commit d5647f0

Please sign in to comment.