Fix filename containing path in display
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user