fix: crash on close (#4033)

This commit is contained in:
Peng Xiao
2023-08-30 11:06:43 +08:00
committed by GitHub
parent d3bd369420
commit cbb5b6e4a5

View File

@@ -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();
} }
}); });