mirror of
https://github.com/finos/SymphonyElectron.git
synced 2024-12-27 01:11:13 -06:00
Merge pull request #1830 from sbenmoussati/bugfix/SDA-4140-main
SDA-4140 Focus SDA after browser login (#1825)
This commit is contained in:
commit
a1254f8f0e
@ -162,6 +162,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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user