mirror of
https://github.com/finos/SymphonyElectron.git
synced 2024-12-27 01:11:13 -06:00
SDA-4204 Show only visible windows to prevent showing back hidden toast notifications while taking a screenshot
This commit is contained in:
parent
8fc03dc123
commit
e35c80f0ec
@ -474,6 +474,7 @@ class ScreenSnippet {
|
|||||||
focused: mainWindow?.isFocused(),
|
focused: mainWindow?.isFocused(),
|
||||||
minimized: mainWindow?.isMinimized(),
|
minimized: mainWindow?.isMinimized(),
|
||||||
isFullScreen: mainWindow?.isFullScreen(),
|
isFullScreen: mainWindow?.isFullScreen(),
|
||||||
|
isVisible: mainWindow?.isVisible(),
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
@ -487,6 +488,7 @@ class ScreenSnippet {
|
|||||||
focused: window.isFocused(),
|
focused: window.isFocused(),
|
||||||
minimized: window?.isMinimized(),
|
minimized: window?.isMinimized(),
|
||||||
isFullScreen: window?.isFullScreen(),
|
isFullScreen: window?.isFullScreen(),
|
||||||
|
isVisible: window?.isVisible(),
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@ -497,6 +499,7 @@ class ScreenSnippet {
|
|||||||
focused: currentWindowObj?.isFocused(),
|
focused: currentWindowObj?.isFocused(),
|
||||||
minimized: currentWindowObj?.isMinimized(),
|
minimized: currentWindowObj?.isMinimized(),
|
||||||
isFullScreen: currentWindowObj?.isFullScreen(),
|
isFullScreen: currentWindowObj?.isFullScreen(),
|
||||||
|
isVisible: currentWindowObj?.isVisible(),
|
||||||
});
|
});
|
||||||
windowsArr = mainArr.concat(windowsArr);
|
windowsArr = mainArr.concat(windowsArr);
|
||||||
} else {
|
} else {
|
||||||
|
@ -15,6 +15,7 @@ export interface IWindowState {
|
|||||||
minimized?: boolean;
|
minimized?: boolean;
|
||||||
focused?: boolean;
|
focused?: boolean;
|
||||||
isFullScreen?: boolean;
|
isFullScreen?: boolean;
|
||||||
|
isVisible?: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
export class WindowStore {
|
export class WindowStore {
|
||||||
@ -77,7 +78,7 @@ 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) {
|
if (currentWindow && currentWindow.isVisible) {
|
||||||
const window: ICustomBrowserWindow | undefined = getWindowByName(
|
const window: ICustomBrowserWindow | undefined = getWindowByName(
|
||||||
currentWindow.id || '',
|
currentWindow.id || '',
|
||||||
) as ICustomBrowserWindow;
|
) as ICustomBrowserWindow;
|
||||||
|
Loading…
Reference in New Issue
Block a user