From 3189fc8976382d211bbd95dadc34dde919641efe Mon Sep 17 00:00:00 2001 From: Daniel Wolf Date: Wed, 2 Jan 2019 14:27:49 +0100 Subject: [PATCH] Don't clear away last progress bar --- rhubarb/src/rhubarb/sinks.cpp | 2 -- rhubarb/src/tools/ProgressBar.h | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/rhubarb/src/rhubarb/sinks.cpp b/rhubarb/src/rhubarb/sinks.cpp index 3b2e1b2..ef62778 100644 --- a/rhubarb/src/rhubarb/sinks.cpp +++ b/rhubarb/src/rhubarb/sinks.cpp @@ -46,7 +46,6 @@ void NiceStderrSink::receive(const logging::Entry& entry) { void NiceStderrSink::startProgressIndication() { std::cerr << "Progress: "; progressBar = boost::in_place(); - progressBar->setClearOnDestruction(false); } void NiceStderrSink::interruptProgressIndication() { @@ -57,7 +56,6 @@ void NiceStderrSink::interruptProgressIndication() { void NiceStderrSink::resumeProgressIndication() { std::cerr << "Progress (cont'd): "; progressBar = boost::in_place(progress); - progressBar->setClearOnDestruction(false); } QuietStderrSink::QuietStderrSink(Level minLevel) : diff --git a/rhubarb/src/tools/ProgressBar.h b/rhubarb/src/tools/ProgressBar.h index 2c58509..2dd5f7a 100644 --- a/rhubarb/src/tools/ProgressBar.h +++ b/rhubarb/src/tools/ProgressBar.h @@ -32,5 +32,5 @@ private: std::ostream& stream; std::string currentText; int animationIndex = 0; - bool clearOnDestruction = true; + bool clearOnDestruction = false; };