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() })