mirror of
https://github.com/Waradu/to-streamshare.git
synced 2025-04-22 04:14:06 +02:00
removed progressbar when done
This commit is contained in:
parent
194a74b958
commit
b6f0687ab0
1 changed files with 2 additions and 0 deletions
|
@ -124,6 +124,7 @@ async fn main() -> std::io::Result<()> {
|
|||
Ok((file_identifier, deletion_token)) => {
|
||||
let mut pb = pb_arc.lock().unwrap();
|
||||
pb.update_to(file_size as usize).unwrap();
|
||||
pb.clear().unwrap();
|
||||
|
||||
println!("\n{}", "┌".to_owned() + &"─".repeat(79) + "┐");
|
||||
println!("│{:^90}│", "Upload Complete!".colorize("bold green"));
|
||||
|
@ -150,6 +151,7 @@ async fn main() -> std::io::Result<()> {
|
|||
);
|
||||
|
||||
println!("{}", "└".to_owned() + &"─".repeat(79) + "┘");
|
||||
println!()
|
||||
}
|
||||
Err(e) => eprintln!("{}", format!("Error: {}", e).colorize("bold red")),
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue