From f034f283babc25efc91a67b46a091f63873d3b0c Mon Sep 17 00:00:00 2001 From: sbenmoussati <51402489+sbenmoussati@users.noreply.github.com> Date: Thu, 1 Dec 2022 15:03:15 +0100 Subject: [PATCH] SDA-3996 Bring to front on notification bugfix --- src/app/window-actions.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/app/window-actions.ts b/src/app/window-actions.ts index 0f450fd0..080dc318 100644 --- a/src/app/window-actions.ts +++ b/src/app/window-actions.ts @@ -115,8 +115,10 @@ const throttledWindowChanges = throttle(async (eventName, window) => { const throttledWindowRestore = throttle(async () => { notification.moveNotificationToTop(); const mainWebContents = windowHandler.getMainWebContents(); - if (mainWebContents && !mainWebContents.isDestroyed()) { - mainWebContents.focus(); + if (isWindowsOS) { + if (mainWebContents && !mainWebContents.isDestroyed()) { + mainWebContents.focus(); + } } }, 1000);