removed progressbar when done

This commit is contained in:
Waradu 2024-10-20 17:29:22 +02:00
parent 194a74b958
commit b6f0687ab0
No known key found for this signature in database
GPG key ID: F85AAC8BA8B8DAAD

View file

@ -124,6 +124,7 @@ async fn main() -> std::io::Result<()> {
Ok((file_identifier, deletion_token)) => { Ok((file_identifier, deletion_token)) => {
let mut pb = pb_arc.lock().unwrap(); let mut pb = pb_arc.lock().unwrap();
pb.update_to(file_size as usize).unwrap(); pb.update_to(file_size as usize).unwrap();
pb.clear().unwrap();
println!("\n{}", "".to_owned() + &"".repeat(79) + ""); println!("\n{}", "".to_owned() + &"".repeat(79) + "");
println!("{:^90}", "Upload Complete!".colorize("bold green")); println!("{:^90}", "Upload Complete!".colorize("bold green"));
@ -150,6 +151,7 @@ async fn main() -> std::io::Result<()> {
); );
println!("{}", "".to_owned() + &"".repeat(79) + ""); println!("{}", "".to_owned() + &"".repeat(79) + "");
println!()
} }
Err(e) => eprintln!("{}", format!("Error: {}", e).colorize("bold red")), Err(e) => eprintln!("{}", format!("Error: {}", e).colorize("bold red")),
} }