mirror of
https://gh.catmak.name/https://github.com/mihomo-party-org/mihomo-party
synced 2025-12-26 20:50:30 +08:00
opt: faster restartAsAdmin with reduced wait time
This commit is contained in:
parent
ae8582bf94
commit
1674bd97ba
@ -674,8 +674,6 @@ export async function restartAsAdmin(forTun: boolean = true): Promise<void> {
|
||||
}
|
||||
})
|
||||
|
||||
await new Promise(resolve => setTimeout(resolve, 1500))
|
||||
|
||||
const { app } = await import('electron')
|
||||
app.quit()
|
||||
} catch (error) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user