opt: faster restartAsAdmin with reduced wait time

This commit is contained in:
Memory 2025-09-12 12:32:47 +08:00 committed by GitHub
parent ae8582bf94
commit 1674bd97ba
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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) {