Skip to content

Commit 6ca6a96

Browse files
authored
small corrections for window bounds/state memory (#1232)
1 parent 1f17c18 commit 6ca6a96

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/main/mainWindow.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,8 +185,11 @@ function initWindowBoundsListeners(win: BrowserWindow) {
185185
win.on("maximize", saveState);
186186
win.on("minimize", saveState);
187187
win.on("unmaximize", saveState);
188+
win.on("restore", saveState);
188189

189190
const saveBounds = () => {
191+
if (win.isMaximized()) return;
192+
190193
State.store.windowBounds = win.getBounds();
191194
};
192195

0 commit comments

Comments
 (0)