Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/src/pacman/callback.c
diff options
context:
space:
mode:
authormorganamilo <morganamilo@archlinux.org>2021-04-18 20:59:43 +0100
committerAllan McRae <allan@archlinux.org>2021-04-23 09:43:30 +1000
commit41f9c50abf08e71aa5fd03568934ab80abc7715c (patch)
treeb005d4328b3c38d87b049d13153105cc26339145 /src/pacman/callback.c
parent63ad8b8b7639ac29fad6c4e0dcc699510c47d587 (diff)
Always enable TotalDownload
Previously TotalDownload would switch the % download from per package to overall. Meaning you had a choice of which information to dispplay. Now with parallel downloads TotalDownload adds an extra progress bar. There's no reason to have this an off by default feature. Let's just make it always on. Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'src/pacman/callback.c')
-rw-r--r--src/pacman/callback.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/pacman/callback.c b/src/pacman/callback.c
index 3f32360c..98887d9f 100644
--- a/src/pacman/callback.c
+++ b/src/pacman/callback.c
@@ -340,7 +340,8 @@ 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 = config->totaldownload && list_total && dload_progressbar_enabled();
+ total_enabled = list_total && dload_progressbar_enabled();
+
if(total_enabled) {
init_total_progressbar();
}