From cefe02f44966d3fb48529f4f3b8d50ce77aadf74 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Walenciak?= Date: Sat, 3 Aug 2024 14:00:57 +0200 Subject: [PATCH] Synchronize comments with README --- samples/dynamic_progress.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/samples/dynamic_progress.cpp b/samples/dynamic_progress.cpp index 83c2e01..c69d814 100644 --- a/samples/dynamic_progress.cpp +++ b/samples/dynamic_progress.cpp @@ -54,7 +54,10 @@ int main() { std::cout << termcolor::bold << termcolor::white << "Pulling image foo:bar/baz\n"; + // Construct with 3 progress bars. We'll add 3 more at a later point DynamicProgress bars(bar1, bar2, bar3); + + // Do not hide bars when completed bars.set_option(option::HideBarWhenComplete{false}); std::thread fourth_job, fifth_job, sixth_job;