Skip to content

There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.

fix: crash on close (#4033)

Peng Xiaocbb5b6e4a57a
diff --git a/apps/electron/src/main/main-window.ts b/apps/electron/src/main/main-window.ts
index 2cb21795f4..05f65bab9a 100644
--- a/apps/electron/src/main/main-window.ts
+++ b/apps/electron/src/main/main-window.ts
@@ -98,7 +98,6 @@ async function createWindow() {
// close and destroy all windows
BrowserWindow.getAllWindows().forEach(w => {
if (!w.isDestroyed()) {
- w.close();
w.destroy();
}
});