mirror of
https://gh.catmak.name/https://github.com/mihomo-party-org/mihomo-party
synced 2025-12-26 20:50:30 +08:00
save window state
This commit is contained in:
parent
8abfeb1213
commit
35d2a10a62
@ -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()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user