fix: msi, prevent black window (#13665)

For msi version, the black window is shown when creating desktop
shortcut for connection.

The exe version does not have this issue.

Signed-off-by: fufesou <linlong1266@gmail.com>
This commit is contained in:
fufesou 2025-11-28 17:25:43 +08:00 committed by GitHub
parent 5b21441898
commit 9cfa551163
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1882,6 +1882,7 @@ oLink.Save
.to_owned();
std::process::Command::new("cscript")
.arg(&shortcut)
.creation_flags(CREATE_NO_WINDOW)
.output()?;
allow_err!(std::fs::remove_file(shortcut));
Ok(())