Skip to content

Commit e7dc36e

Browse files
authored
fix: preserve zoomFactor on restarts (#1035)
fix: set window zommFactor to previous zoomFactor
1 parent 23c1bae commit e7dc36e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

main.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,11 @@ const menubarApp = menubar({
4343
});
4444

4545
menubarApp.on('ready', () => {
46+
// Force the window to retrieve its previous zoom factor
47+
menubarApp.window.webContents.setZoomFactor(
48+
menubarApp.window.webContents.getZoomFactor(),
49+
);
50+
4651
menubarApp.tray.setIgnoreDoubleClickEvents(true);
4752

4853
autoUpdater.checkForUpdatesAndNotify();

0 commit comments

Comments
 (0)