mirror of
https://github.com/finos/SymphonyElectron.git
synced 2024-12-26 08:51:22 -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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (
|
||||||
|
(focusedWindow as ICustomBrowserWindow).winName ===
|
||||||
|
apiName.notificationWindowName
|
||||||
|
) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
let { webContents } = focusedWindow;
|
let { webContents } = focusedWindow;
|
||||||
|
|
||||||
// If the focused window is mainWindow we should use mainWebContents
|
// If the focused window is mainWindow we should use mainWebContents
|
||||||
@ -946,6 +953,13 @@ export const zoomOut = () => {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (
|
||||||
|
(focusedWindow as ICustomBrowserWindow).winName ===
|
||||||
|
apiName.notificationWindowName
|
||||||
|
) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
let { webContents } = focusedWindow;
|
let { webContents } = focusedWindow;
|
||||||
|
|
||||||
// If the focused window is mainWindow we should use mainWebContents
|
// If the focused window is mainWindow we should use mainWebContents
|
||||||
@ -1031,6 +1045,12 @@ export const resetZoomLevel = () => {
|
|||||||
if (!focusedWindow || !windowExists(focusedWindow)) {
|
if (!focusedWindow || !windowExists(focusedWindow)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (
|
||||||
|
(focusedWindow as ICustomBrowserWindow).winName ===
|
||||||
|
apiName.notificationWindowName
|
||||||
|
) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
let { webContents } = focusedWindow;
|
let { webContents } = focusedWindow;
|
||||||
// If the focused window is mainWindow we should use mainWebContents
|
// If the focused window is mainWindow we should use mainWebContents
|
||||||
if (
|
if (
|
||||||
|
Loading…
Reference in New Issue
Block a user