mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 04:18:54 +00:00
fix: crash on close (#4033)
This commit is contained in:
@@ -98,7 +98,6 @@ async function createWindow() {
|
|||||||
// close and destroy all windows
|
// close and destroy all windows
|
||||||
BrowserWindow.getAllWindows().forEach(w => {
|
BrowserWindow.getAllWindows().forEach(w => {
|
||||||
if (!w.isDestroyed()) {
|
if (!w.isDestroyed()) {
|
||||||
w.close();
|
|
||||||
w.destroy();
|
w.destroy();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user