diff options
author | morganamilo <morganamilo@archlinux.org> | 2021-04-18 21:59:44 +0200 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2021-04-23 01:45:27 +0200 |
commit | 079b9d44e2faadd83856de07f890bae5cc51c5a4 (patch) | |
tree | c84ede5dc18eaecd138d2f73ea8708a6038edd1f /src | |
parent | 41f9c50abf08e71aa5fd03568934ab80abc7715c (diff) | |
download | pacman-079b9d44e2faadd83856de07f890bae5cc51c5a4.tar.gz pacman-079b9d44e2faadd83856de07f890bae5cc51c5a4.tar.xz |
Only enable total progress when downloads > 1
Otherwise the total progress will just match the one package and be
pretty useless.
Diffstat (limited to 'src')
-rw-r--r-- | src/pacman/callback.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pacman/callback.c b/src/pacman/callback.c index 98887d9f..9628779a 100644 --- a/src/pacman/callback.c +++ b/src/pacman/callback.c @@ -340,7 +340,7 @@ void cb_event(alpm_event_t *event) on_progress = 1; list_total_pkgs = event->pkg_retrieve.num; list_total = event->pkg_retrieve.total_size; - total_enabled = list_total && dload_progressbar_enabled(); + total_enabled = list_total && list_total_pkgs > 1 && dload_progressbar_enabled(); if(total_enabled) { init_total_progressbar(); |