fix: stabilize Windows dynamic UAC elevation by waiting for powershell handoff

This commit is contained in:
ospab 2026-05-15 16:39:19 +03:00
parent e83d81b0a7
commit c2407f3637
1 changed files with 1 additions and 1 deletions

View File

@ -68,7 +68,7 @@ fn relaunch_as_admin() -> Result<()> {
let _ = std::process::Command::new("powershell") let _ = std::process::Command::new("powershell")
.args(["-Command", &ps_script]) .args(["-Command", &ps_script])
.spawn()?; .status()?;
std::process::exit(0); std::process::exit(0);
} }