Skip to content

Commit 695b8dd

Browse files
fix(window): useBorderless store value auto reset to true after restart
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
1 parent 2173f19 commit 695b8dd

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

electron/main/windows/main-window.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ class MainWindow {
2424
const bounds = this.win?.getBounds();
2525
if (bounds) {
2626
const maximized = this.win?.isMaximized();
27-
store.set("window", { ...bounds, maximized });
27+
const windowState = store.get("window");
28+
store.set("window", { ...windowState, ...bounds, maximized });
2829
}
2930
}
3031
/**

0 commit comments

Comments
 (0)