SDA-3996 Bring to front on notification bugfix

This commit is contained in:
sbenmoussati authored and Salah Benmoussati committed 2022-12-09 09:03:07 +01:00
1 parent b081dca9c5
commit f034f283ba
1 file changed
+4 -2
+4 -2
View File
@@ -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);