From 92feaa0283f7c29e008502939338a9df17a0c0fa Mon Sep 17 00:00:00 2001 From: filip mertens Date: Thu, 1 Jun 2023 11:32:35 +0200 Subject: [PATCH] close watcher --- apps/1test/src/electron/engine.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/1test/src/electron/engine.ts b/apps/1test/src/electron/engine.ts index 18c7363346..891602e03b 100644 --- a/apps/1test/src/electron/engine.ts +++ b/apps/1test/src/electron/engine.ts @@ -20,7 +20,8 @@ ipcMain.handle('engine:activatePlugin', async (event, arg) => { return await appManager.activatePlugin(arg) }) -app.on('window-all-closed', async () => { +app.on('before-quit', async () => { await appManager.call('fs', 'closeWatch') console.log('quit') + app.quit() }) \ No newline at end of file