summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Beyer <matthias.beyer@atos.net>2021-12-02 14:19:22 +0100
committerMatthias Beyer <matthias.beyer@atos.net>2021-12-02 14:23:53 +0100
commit55bc26a59974eb3ba5afaa86a87ef189d868c6a7 (patch)
treead33252fc73400f607c3ff71ff09739274d4493d
parent585f07d9026c9ba60d8a27f9d64ab0c38e8f26c6 (diff)
Fix: Increase bar length when adding download
Signed-off-by: Matthias Beyer <matthias.beyer@atos.net>
-rw-r--r--src/commands/source/download.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/commands/source/download.rs b/src/commands/source/download.rs
index f9ebd42..11843fa 100644
--- a/src/commands/source/download.rs
+++ b/src/commands/source/download.rs
@@ -64,6 +64,8 @@ impl ProgressWrapper {
async fn inc_download_count(&mut self) {
self.download_count += 1;
self.set_message().await;
+ let bar = self.bar.lock().await;
+ bar.set_length(bar.length() + 1);
}
async fn inc_download_bytes(&mut self, bytes: u64) {