fix some ui and trying to fix black window
This commit is contained in:
@@ -66,6 +66,8 @@ pub async fn fetch_metadata(app: &AppHandle, url: &str, parse_mix_playlist: bool
|
||||
let qjs_path = binary_manager::get_qjs_path(app)?; // Get absolute path to quickjs
|
||||
|
||||
let mut cmd = Command::new(ytdlp_path);
|
||||
#[cfg(target_os = "windows")]
|
||||
cmd.creation_flags(0x08000000);
|
||||
|
||||
// Pass the runtime and its absolute path to --js-runtimes
|
||||
cmd.arg("--js-runtimes").arg(format!("quickjs:{}", qjs_path.to_string_lossy()));
|
||||
@@ -200,6 +202,8 @@ pub async fn download_video(
|
||||
}).ok();
|
||||
|
||||
let mut cmd = Command::new(ytdlp_path);
|
||||
#[cfg(target_os = "windows")]
|
||||
cmd.creation_flags(0x08000000);
|
||||
|
||||
let mut child = cmd
|
||||
.args(&args)
|
||||
|
||||
Reference in New Issue
Block a user