Remove all listener when closed main window
This commit is contained in:
parent
c524777505
commit
f5afafe26a
|
@ -115,6 +115,7 @@ function createWindow() {
|
||||||
}
|
}
|
||||||
// ウィンドウが閉じられたらアプリも終了
|
// ウィンドウが閉じられたらアプリも終了
|
||||||
mainWindow.on('closed', function() {
|
mainWindow.on('closed', function() {
|
||||||
|
electron.ipcMain.removeAllListeners();
|
||||||
mainWindow = null;
|
mainWindow = null;
|
||||||
});
|
});
|
||||||
mainWindow.on('close', function() {
|
mainWindow.on('close', function() {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user