~matthiasbeyer/butido

55bc26a59974eb3ba5afaa86a87ef189d868c6a7 — Matthias Beyer 1 year, 9 months ago 585f07d
Fix: Increase bar length when adding download

Signed-off-by: Matthias Beyer <matthias.beyer@atos.net>
1 files changed, 2 insertions(+), 0 deletions(-)

M src/commands/source/download.rs
M src/commands/source/download.rs => src/commands/source/download.rs +2 -0
@@ 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) {