Skip to content

Commit

Permalink
save window state
Browse files Browse the repository at this point in the history
  • Loading branch information
pompurin404 committed Oct 28, 2024
1 parent 8abfeb1 commit 35d2a10
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,10 @@ export async function createWindow(): Promise<void> {
}
})

mainWindow.on('resized', () => {
if (mainWindow) mainWindowState.saveState(mainWindow)
})

mainWindow.on('session-end', async () => {
triggerSysProxy(false)
await stopCore()
Expand Down

0 comments on commit 35d2a10

Please sign in to comment.