SDA-4061 Storing windows state should happen when we take a screenshot by hidding SDA only (#1698)

This commit is contained in:
Salah Benmoussati 2023-02-08 11:36:37 +01:00 committed by GitHub
parent 6d64182e4a
commit 1825eb1dee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -96,10 +96,10 @@ class ScreenSnippet {
?.winName;
const mainWindow = windowHandler.getMainWindow();
this.storeWindowsState(mainWindow, currentWindowObj);
winStore.hideWindowsOnCapturing(hideOnCapture);
if (hideOnCapture) {
this.storeWindowsState(mainWindow, currentWindowObj);
winStore.hideWindowsOnCapturing(hideOnCapture);
}
if (mainWindow && windowExists(mainWindow) && isWindowsOS) {
this.shouldUpdateAlwaysOnTop = mainWindow.isAlwaysOnTop();
if (this.shouldUpdateAlwaysOnTop) {