From ca71ec24f8cddb979fe82d7302dce7b954446799 Mon Sep 17 00:00:00 2001 From: Eugene Pankov Date: Sat, 29 Dec 2018 12:41:32 +0100 Subject: [PATCH] fixed #585 --- app/lib/window.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/lib/window.ts b/app/lib/window.ts index 527f489f..b14216bd 100644 --- a/app/lib/window.ts +++ b/app/lib/window.ts @@ -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() })