This commit is contained in:
Eugene Pankov 2018-12-29 12:41:32 +01:00
parent 524550f6e3
commit ca71ec24f8

View file

@ -250,7 +250,10 @@ export class Window {
this.window.moveTop()
})
ipcMain.on('window-close', () => {
ipcMain.on('window-close', event => {
if (event.sender !== this.window.webContents) {
return
}
this.closing = true
this.window.close()
})