From 395491d0bb49b85efad49d0ba9d39829df689aec Mon Sep 17 00:00:00 2001 From: argenius Date: Thu, 7 Nov 2024 18:07:31 +0100 Subject: [PATCH] Better quit app --- app/main.ts | 3 +++ app/package-lock.json | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/app/main.ts b/app/main.ts index 4304562..241bb41 100644 --- a/app/main.ts +++ b/app/main.ts @@ -786,6 +786,9 @@ try { ipcMain.handle('quit', (event: IpcMainInvokeEvent) => { isQuitting = true; + tray.destroy(); + win?.close(); + win?.destroy(); app.quit(); }); diff --git a/app/package-lock.json b/app/package-lock.json index bd41312..6ebf1fa 100644 --- a/app/package-lock.json +++ b/app/package-lock.json @@ -1,12 +1,12 @@ { "name": "monerod-gui", - "version": "0.1.1", + "version": "0.1.2", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "monerod-gui", - "version": "0.1.1", + "version": "0.1.2", "dependencies": { "adm-zip": "^0.5.16", "applescript": "^1.0.0",