nix-super/src/libmain/progress-bar.hh
Eelco Dolstra bb411e4ae1 Fix progress bar flicker with -L
This was caused by -L calling setLogFormat() again, which caused the
creation of a new progress bar without destroying the old one. So we
had two progress bars clobbering each other.

We should change 'logger' to be a smart pointer, but I'll do that in a
future PR.

Fixes #6931.
2022-08-24 22:36:40 +02:00

13 lines
136 B
C++

#pragma once
#include "logging.hh"
namespace nix {
Logger * makeProgressBar();
void startProgressBar();
void stopProgressBar();
}