Remove all listener when closed main window

This commit is contained in:
kPherox 2019-04-05 20:43:37 +09:00
parent c524777505
commit f5afafe26a
No known key found for this signature in database
GPG Key ID: C04751C2BFA2F62D

View File

@ -115,6 +115,7 @@ function createWindow() {
}
// ウィンドウが閉じられたらアプリも終了
mainWindow.on('closed', function() {
electron.ipcMain.removeAllListeners();
mainWindow = null;
});
mainWindow.on('close', function() {