SDA-4140 Focus SDA after browser login (#1825)

* SDA-4140 Focus SDA after browser login

* SDA-4140 Focus SDA after browser login
This commit is contained in:
Salah Benmoussati 2023-04-03 16:36:12 +02:00 committed by sbenmoussati
parent b730580b59
commit 6c90c62f80

View File

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