fix: cli progress (#2840)

This commit is contained in:
Miles Murgaw 2024-08-19 14:10:53 -07:00 committed by GitHub
parent 4963aa3118
commit 8e613d3bcc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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;