Skip to content

Commit

Permalink
SDA-4140 Focus SDA after browser login (finos#1825)
Browse files Browse the repository at this point in the history
* SDA-4140 Focus SDA after browser login

* SDA-4140 Focus SDA after browser login
  • Loading branch information
sbenmoussati committed Apr 3, 2023
1 parent b730580 commit 6c90c62
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/app/protocol-handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,15 @@ class ProtocolHandler {
);
windowHandler.setMainWindowOrigin(redirectURL);
mainWebContents?.loadURL(redirectURL);
const mainWindow = windowHandler.getMainWindow();
if (mainWindow?.isMinimized()) {
mainWindow.restore();
} else if (mainWindow?.isFullScreen()) {
mainWindow.once('leave-full-screen', () => {
mainWindow.setFullScreen(true);
});
mainWindow.setFullScreen(false);
}
}
}
}
Expand Down

0 comments on commit 6c90c62

Please sign in to comment.