fix: reopening window crash on macos
This commit is contained in:
@@ -72,8 +72,11 @@ export class Window {
|
|||||||
this.openDevTools();
|
this.openDevTools();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Delete current reference when the window is closed`
|
// When the window is closed`
|
||||||
this._window.on('closed', () => {
|
this._window.on('closed', () => {
|
||||||
|
// Remove IPC Main listeners
|
||||||
|
ipcMain.removeAllListeners();
|
||||||
|
// Delete current reference
|
||||||
delete this._window;
|
delete this._window;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user