mirror of
https://github.com/finos/SymphonyElectron.git
synced 2024-12-26 00:41:11 -06:00
SDA-4528: Minimize Windows wont disappear on capture with SDA Hidden
This commit is contained in:
parent
98f638bff6
commit
3a8a8442df
@ -95,16 +95,19 @@ export class WindowStore {
|
||||
const fullscreenedWindows: IWindowState[] = [];
|
||||
// Restoring all windows except focused one
|
||||
storedWindows.windows.forEach((currentWindow) => {
|
||||
if (currentWindow && currentWindow.isVisible) {
|
||||
if (currentWindow) {
|
||||
const window: ICustomBrowserWindow | undefined = getWindowByName(
|
||||
currentWindow.id || '',
|
||||
) as ICustomBrowserWindow;
|
||||
if (window) {
|
||||
if (currentWindow.isFullScreen) {
|
||||
fullscreenedWindows.push(currentWindow);
|
||||
} else if (!currentWindow.minimized && !currentWindow.focused) {
|
||||
} else if (!currentWindow.focused) {
|
||||
window.showInactive();
|
||||
window.moveTop();
|
||||
if (currentWindow.minimized) {
|
||||
window.minimize();
|
||||
}
|
||||
}
|
||||
if (currentWindow.focused) {
|
||||
focusedWindowToRestore = window;
|
||||
|
Loading…
Reference in New Issue
Block a user