We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2173f19 + 695b8dd commit 7881b12Copy full SHA for 7881b12
1 file changed
electron/main/windows/main-window.ts
@@ -24,7 +24,8 @@ class MainWindow {
24
const bounds = this.win?.getBounds();
25
if (bounds) {
26
const maximized = this.win?.isMaximized();
27
- store.set("window", { ...bounds, maximized });
+ const windowState = store.get("window");
28
+ store.set("window", { ...windowState, ...bounds, maximized });
29
}
30
31
/**
0 commit comments