Skip to content

Commit 7881b12

Browse files
authored
Merge pull request #717 from Revincx/fix-window-borderless
🐞 fix: 无边框窗口模式在重启程序之后自动打开
2 parents 2173f19 + 695b8dd commit 7881b12

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)