diff --git a/src/app/stores/window-store.ts b/src/app/stores/window-store.ts index df1c7c76..87ac13fb 100644 --- a/src/app/stores/window-store.ts +++ b/src/app/stores/window-store.ts @@ -68,6 +68,7 @@ export class WindowStore { public restoreWindows = (hideOnCapture?: boolean) => { if (hideOnCapture) { + this.restoreNotificationProperties(); const storedWindows = this.getWindowStore(); let currentWindow = storedWindows.windows.find( (currentWindow) => currentWindow.focused, @@ -132,6 +133,25 @@ export class WindowStore { } }; + /** + * Restores notification properties reset to default post hiding main window + * @param windowsNames + */ + private restoreNotificationProperties = () => { + const windows = BrowserWindow.getAllWindows(); + + windows + .filter( + (window) => + (window as ICustomBrowserWindow).winName === + apiName.notificationWindowName, + ) + .map((notificationWindow) => { + notificationWindow.setAlwaysOnTop(true); + notificationWindow.setSkipTaskbar(true); + }); + }; + private hideFullscreenWindow = (window: BrowserWindow) => { window.once('leave-full-screen', () => { if (isMac) {