mirror of
https://gh.catmak.name/https://github.com/mihomo-party-org/mihomo-party
synced 2025-12-27 05:00: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 () => {
|
mainWindow.on('session-end', async () => {
|
||||||
triggerSysProxy(false)
|
triggerSysProxy(false)
|
||||||
await stopCore()
|
await stopCore()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user