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