diff --git a/src/main/ipc.ts b/src/main/ipc.ts index 4fc0775..564d7df 100644 --- a/src/main/ipc.ts +++ b/src/main/ipc.ts @@ -71,7 +71,7 @@ handle(IpcEvents.FOCUS, () => { }); handle(IpcEvents.CLOSE, e => { - mainWin.close(); + e.sender.close(); }); handle(IpcEvents.MINIMIZE, e => {