Fix filename containing path in display

This commit is contained in:
Daniel M 2021-04-01 00:10:41 +02:00
parent 8fee14d0e6
commit 0d4f32d22d

View File

@ -252,9 +252,11 @@ pub async fn download_feedback_multi(url: &str, into_file: &str, rep: DlReporter
drop(tx); drop(tx);
let filename = Path::new(into_file).file_name().unwrap().to_str().unwrap();
rep.send(DlStatus::Init { rep.send(DlStatus::Init {
bytes_total: content_length, bytes_total: content_length,
filename: into_file.to_string() filename: filename.to_string()
}); });
let rep_task = rep.clone(); let rep_task = rep.clone();