Fix filename containing path in display
This commit is contained in:
parent
8fee14d0e6
commit
0d4f32d22d
@ -252,9 +252,11 @@ pub async fn download_feedback_multi(url: &str, into_file: &str, rep: DlReporter
|
||||
|
||||
drop(tx);
|
||||
|
||||
let filename = Path::new(into_file).file_name().unwrap().to_str().unwrap();
|
||||
|
||||
rep.send(DlStatus::Init {
|
||||
bytes_total: content_length,
|
||||
filename: into_file.to_string()
|
||||
filename: filename.to_string()
|
||||
});
|
||||
|
||||
let rep_task = rep.clone();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user