Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
p->state = PAKFIRE_PROGRESS_INIT;
// Store a reference to the parent
- if (parent)
+ if (parent) {
p->parent = pakfire_progress_ref(parent);
+ // Automatically disable showing any progress ourselves. This is so that
+ // we can have a single progress meter that has lots of children to track
+ // the status of multiple sub-operations.
+ p->flags |= PAKFIRE_PROGRESS_NO_PROGRESS;
+ }
+
// Configure some default callbacks
p->callbacks.start = pakfire_progress_default_start_callback;