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