diff options
author | alois31 <alois1@gmx-topmail.de> | 2024-07-02 14:12:07 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@localhost> | 2024-07-02 14:12:07 +0000 |
commit | 24852355d8975dcc786ddc4d5853043a52e4c78c (patch) | |
tree | f97dd0189e0baa79f261dafd38644c59c9a42f44 /src/libmain/progress-bar.hh | |
parent | 865a3732faca16a79bf24982011adf100de04463 (diff) | |
parent | 0dd1d8ca1cdccfc620644a7f690ed35bcd2d1e74 (diff) |
Merge "tree-wide: unify progress bar inactive and paused states" into main
Diffstat (limited to 'src/libmain/progress-bar.hh')
-rw-r--r-- | src/libmain/progress-bar.hh | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/src/libmain/progress-bar.hh b/src/libmain/progress-bar.hh index e682d75fe..ad500de6e 100644 --- a/src/libmain/progress-bar.hh +++ b/src/libmain/progress-bar.hh @@ -48,9 +48,8 @@ struct ProgressBar : public Logger uint64_t corruptedPaths = 0, untrustedPaths = 0; - bool active = true; - bool paused = false; - bool haveUpdate = true; + uint32_t paused = 1; + bool haveUpdate = false; }; Sync<State> state_; @@ -67,10 +66,10 @@ struct ProgressBar : public Logger ~ProgressBar(); - void stop() override final; - void pause() override; + void resetProgress() override; + void resume() override; bool isVerbose() override; @@ -113,8 +112,4 @@ struct ProgressBar : public Logger Logger * makeProgressBar(); -void startProgressBar(); - -void stopProgressBar(); - } |