Update crates/tabby-download/src/lib.rs
parent
8898045fa8
commit
cf8e45121d
|
|
@ -135,9 +135,11 @@ async fn download_file(
|
||||||
|
|
||||||
// Indicatif setup
|
// Indicatif setup
|
||||||
let pb = ProgressBar::new(total_size);
|
let pb = ProgressBar::new(total_size);
|
||||||
pb.set_style(ProgressStyle::default_bar()
|
pb.set_style(
|
||||||
.template("{msg}\n{spinner:.green} [{elapsed_precise}] [{wide_bar:.cyan/blue}] {bytes}/{total_bytes} ({bytes_per_sec}, {eta})")?
|
ProgressStyle::default_bar()
|
||||||
.progress_chars("#>-"));
|
.template("{msg}\n{spinner:.green} [{elapsed_precise}] [{wide_bar:.cyan/blue}] {bytes}/{total_bytes} ({bytes_per_sec}, {eta})")?
|
||||||
|
.progress_chars("#>-"),
|
||||||
|
);
|
||||||
pb.set_message(format!("Downloading {}", path));
|
pb.set_message(format!("Downloading {}", path));
|
||||||
|
|
||||||
// download chunks
|
// download chunks
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue