diff options
| author | Dan Engelbrecht <[email protected]> | 2026-02-20 10:29:42 +0100 |
|---|---|---|
| committer | GitHub Enterprise <[email protected]> | 2026-02-20 10:29:42 +0100 |
| commit | 17898ec8a7ce42c0da27ac50c5c65aeb447c6374 (patch) | |
| tree | ce7a228f531bc5439d04466567ecb0635a61d092 | |
| parent | initial CLAUDE.md (#764) (diff) | |
| download | zen-17898ec8a7ce42c0da27ac50c5c65aeb447c6374.tar.xz zen-17898ec8a7ce42c0da27ac50c5c65aeb447c6374.zip | |
fix plain progress bar (#768)
* fix plain progress not updating current state
| -rw-r--r-- | CHANGELOG.md | 3 | ||||
| -rw-r--r-- | src/zen/progressbar.cpp | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 9fa4fe031..0098f08b4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,7 @@ ## +- Bugfix: `--plain-progress` style progress bar should now show elapsed time correctly + +## 5.7.21 - Feature: Added `--security-config-path` option to zenserver to configure security settings - Expects a path to a .json file - Default is an empty path resulting in no extra security settings and legacy behavior diff --git a/src/zen/progressbar.cpp b/src/zen/progressbar.cpp index 83606df67..1ee1d1e71 100644 --- a/src/zen/progressbar.cpp +++ b/src/zen/progressbar.cpp @@ -245,6 +245,7 @@ ProgressBar::UpdateState(const State& NewState, bool DoLinebreak) const std::string Details = (!NewState.Details.empty()) ? fmt::format(": {}", NewState.Details) : ""; const std::string Output = fmt::format("{} {}% ({}){}\n", Task, PercentDone, NiceTimeSpanMs(ElapsedTimeMS), Details); OutputToConsoleRaw(Output); + m_State = NewState; } else if (m_Mode == Mode::Pretty) { |