diff --git a/src/main/index.ts b/src/main/index.ts index 6b43839..fd95fb5 100644 --- a/src/main/index.ts +++ b/src/main/index.ts @@ -269,6 +269,10 @@ export async function createWindow(): Promise { if (mainWindow) mainWindowState.saveState(mainWindow) }) + mainWindow.on('move', () => { + if (mainWindow) mainWindowState.saveState(mainWindow) + }) + mainWindow.on('session-end', async () => { triggerSysProxy(false) await stopCore()