From 8e9330931a6ef8546f0a3d01fc84313925d54041 Mon Sep 17 00:00:00 2001 From: Arthur Dufour Date: Wed, 17 Apr 2024 18:14:29 +0200 Subject: [PATCH] fix: set window zommFactor to previous zoomFactor --- main.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/main.js b/main.js index ddf8ab0b7..a9e12ffa9 100644 --- a/main.js +++ b/main.js @@ -43,6 +43,11 @@ const menubarApp = menubar({ }); menubarApp.on('ready', () => { + // Force the window to retrieve its previous zoom factor + menubarApp.window.webContents.setZoomFactor( + menubarApp.window.webContents.getZoomFactor(), + ); + menubarApp.tray.setIgnoreDoubleClickEvents(true); autoUpdater.checkForUpdatesAndNotify();