fix: close and recreate macOS windows safely

This commit is contained in:
鲨鱼辣椒 committed 2026-09-29 19:50:25 +08:00
1 parent f443f3bc66
commit b5e6c663ef
19 files changed
+1079 -172

No files matched your search

+1 -1
View File
@@ -133,7 +133,7 @@ export class AppUpdater extends EventEmitter {
/**
* Set the main window for sending update events
*/
setMainWindow(window: BrowserWindow): void {
setMainWindow(window: BrowserWindow | null): void {
this.mainWindow = window;
}