Reorder IPC callbacks for settings window

This commit is contained in:
Fedor Indutny 2021-09-07 12:42:17 -07:00 committed by GitHub
parent 5c7972893c
commit 4bed918cf8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 19 additions and 15 deletions

View file

@ -319,12 +319,7 @@ function handleCommonWindowEvents(window) {
}
if (window.webContents) {
window.webContents.send('callbacks:call:setPassiveZoomFactor', [
zoomFactor,
]);
if (settingsWindow && settingsWindow.webContents) {
settingsWindow.webContents.send('render');
}
window.webContents.send('callbacks:call:persistZoomFactor', [zoomFactor]);
}
lastZoomFactor = zoomFactor;