aboutsummaryrefslogtreecommitdiff
path: root/src/libmain/progress-bar.hh
diff options
context:
space:
mode:
authoralois31 <alois1@gmx-topmail.de>2024-07-02 14:12:07 +0000
committerGerrit Code Review <gerrit@localhost>2024-07-02 14:12:07 +0000
commit24852355d8975dcc786ddc4d5853043a52e4c78c (patch)
treef97dd0189e0baa79f261dafd38644c59c9a42f44 /src/libmain/progress-bar.hh
parent865a3732faca16a79bf24982011adf100de04463 (diff)
parent0dd1d8ca1cdccfc620644a7f690ed35bcd2d1e74 (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.hh13
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();
-
}