fix: crash on close (#4033)

This commit is contained in:
Peng Xiao authored and GitHub committed 2023-08-30 03:06:43 +00:00
1 parent d3bd369420
commit cbb5b6e4a5
1 file changed
-1
-1
View File
@@ -98,7 +98,6 @@ async function createWindow() {
// close and destroy all windows
BrowserWindow.getAllWindows().forEach(w => {
if (!w.isDestroyed()) {
w.close();
w.destroy();
}
});