Better quit app

This commit is contained in:
argenius 2024-11-07 18:07:31 +01:00
parent aa0c75e480
commit 395491d0bb
2 changed files with 5 additions and 2 deletions

View file

@ -786,6 +786,9 @@ try {
ipcMain.handle('quit', (event: IpcMainInvokeEvent) => { ipcMain.handle('quit', (event: IpcMainInvokeEvent) => {
isQuitting = true; isQuitting = true;
tray.destroy();
win?.close();
win?.destroy();
app.quit(); app.quit();
}); });

4
app/package-lock.json generated
View file

@ -1,12 +1,12 @@
{ {
"name": "monerod-gui", "name": "monerod-gui",
"version": "0.1.1", "version": "0.1.2",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "monerod-gui", "name": "monerod-gui",
"version": "0.1.1", "version": "0.1.2",
"dependencies": { "dependencies": {
"adm-zip": "^0.5.16", "adm-zip": "^0.5.16",
"applescript": "^1.0.0", "applescript": "^1.0.0",