mirror of
https://github.com/finos/SymphonyElectron.git
synced 2024-11-25 02:10:32 -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[] = [];
|
const fullscreenedWindows: IWindowState[] = [];
|
||||||
// Restoring all windows except focused one
|
// Restoring all windows except focused one
|
||||||
storedWindows.windows.forEach((currentWindow) => {
|
storedWindows.windows.forEach((currentWindow) => {
|
||||||
if (currentWindow && currentWindow.isVisible) {
|
if (currentWindow) {
|
||||||
const window: ICustomBrowserWindow | undefined = getWindowByName(
|
const window: ICustomBrowserWindow | undefined = getWindowByName(
|
||||||
currentWindow.id || '',
|
currentWindow.id || '',
|
||||||
) as ICustomBrowserWindow;
|
) as ICustomBrowserWindow;
|
||||||
if (window) {
|
if (window) {
|
||||||
if (currentWindow.isFullScreen) {
|
if (currentWindow.isFullScreen) {
|
||||||
fullscreenedWindows.push(currentWindow);
|
fullscreenedWindows.push(currentWindow);
|
||||||
} else if (!currentWindow.minimized && !currentWindow.focused) {
|
} else if (!currentWindow.focused) {
|
||||||
window.showInactive();
|
window.showInactive();
|
||||||
window.moveTop();
|
window.moveTop();
|
||||||
|
if (currentWindow.minimized) {
|
||||||
|
window.minimize();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (currentWindow.focused) {
|
if (currentWindow.focused) {
|
||||||
focusedWindowToRestore = window;
|
focusedWindowToRestore = window;
|
||||||
|
Loading…
Reference in New Issue
Block a user