mirror of
https://github.com/finos/SymphonyElectron.git
synced 2024-12-26 00:41:11 -06:00
SDA-4563 - Ignore changing zoom if focused window is notification window (#2146)
This commit is contained in:
parent
e6cdae2b68
commit
a9f3887d55
@ -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 (
|
||||
|
Loading…
Reference in New Issue
Block a user