From a9f3887d55bd0c7829665a419eb8c663c190fef6 Mon Sep 17 00:00:00 2001 From: Kiran Niranjan Date: Tue, 7 May 2024 20:55:16 +0530 Subject: [PATCH] SDA-4563 - Ignore changing zoom if focused window is notification window (#2146) --- src/app/window-utils.ts | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/src/app/window-utils.ts b/src/app/window-utils.ts index 1a7d3730..47a4c61c 100644 --- a/src/app/window-utils.ts +++ b/src/app/window-utils.ts @@ -858,6 +858,13 @@ export const zoomIn = () => { return; } + if ( + (focusedWindow as ICustomBrowserWindow).winName === + apiName.notificationWindowName + ) { + return; + } + let { webContents } = focusedWindow; // If the focused window is mainWindow we should use mainWebContents @@ -946,6 +953,13 @@ export const zoomOut = () => { return; } + if ( + (focusedWindow as ICustomBrowserWindow).winName === + apiName.notificationWindowName + ) { + return; + } + let { webContents } = focusedWindow; // If the focused window is mainWindow we should use mainWebContents @@ -1031,6 +1045,12 @@ export const resetZoomLevel = () => { if (!focusedWindow || !windowExists(focusedWindow)) { return; } + if ( + (focusedWindow as ICustomBrowserWindow).winName === + apiName.notificationWindowName + ) { + return; + } let { webContents } = focusedWindow; // If the focused window is mainWindow we should use mainWebContents if (