fix: cli progress (#2840)

This commit is contained in:
Miles Murgaw authored and GitHub committed 2024-08-19 14:10:53 -07:00
1 parent 4963aa3118
commit 8e613d3bcc
1 file changed
+3 -3
+3 -3
View File
@@ -702,7 +702,7 @@ impl Output {
},
Line::from(" ").gray(),
Line::from(" [/] more").gray(),
Line::from(" [r] reload").gray(),
Line::from(" [r] rebuild").gray(),
Line::from(" [c] clear").gray(),
Line::from(" [o] open").gray(),
Line::from(" [h] hide").gray(),
@@ -888,8 +888,8 @@ impl ActiveBuild {
fn update(&mut self, update: UpdateBuildProgress) {
match update.update {
UpdateStage::Start => {
// If we are already past the stage, don't roll back
if self.stage > update.stage {
// If we are already past the stage, don't roll back, but allow a fresh build to update.
if self.stage > update.stage && self.stage < Stage::Finished {
return;
}
self.stage = update.stage;