SDA-4201 Minimized windows should be ignored while listing windows that needs to be hidden to take a screenshot

This commit is contained in:
sbenmoussati 2023-06-01 12:13:21 +02:00 committed by Salah Benmoussati
parent 624d48f2e4
commit 24b6c17400

View File

@ -47,9 +47,11 @@ export class WindowStore {
currentWindows.forEach((currentWindow) => {
const isFullScreen = currentWindow.isFullScreen();
const isMinimized = currentWindow.isMinimized();
if (isFullScreen) {
this.hideFullscreenWindow(currentWindow);
} else {
// No need to hide minimized windows
} else if (!isMinimized) {
currentWindow?.hide();
}
});