fix: cli progress (#2840)
This commit is contained in:
1 parent
4963aa3118
commit
8e613d3bcc
1 file changed
+3
-3
@@ -702,7 +702,7 @@ impl Output {
|
|||||||
},
|
},
|
||||||
Line::from(" ").gray(),
|
Line::from(" ").gray(),
|
||||||
Line::from(" [/] more").gray(),
|
Line::from(" [/] more").gray(),
|
||||||
Line::from(" [r] reload").gray(),
|
Line::from(" [r] rebuild").gray(),
|
||||||
Line::from(" [c] clear").gray(),
|
Line::from(" [c] clear").gray(),
|
||||||
Line::from(" [o] open").gray(),
|
Line::from(" [o] open").gray(),
|
||||||
Line::from(" [h] hide").gray(),
|
Line::from(" [h] hide").gray(),
|
||||||
@@ -888,8 +888,8 @@ impl ActiveBuild {
|
|||||||
fn update(&mut self, update: UpdateBuildProgress) {
|
fn update(&mut self, update: UpdateBuildProgress) {
|
||||||
match update.update {
|
match update.update {
|
||||||
UpdateStage::Start => {
|
UpdateStage::Start => {
|
||||||
// If we are already past the stage, don't roll back
|
// If we are already past the stage, don't roll back, but allow a fresh build to update.
|
||||||
if self.stage > update.stage {
|
if self.stage > update.stage && self.stage < Stage::Finished {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
self.stage = update.stage;
|
self.stage = update.stage;
|
||||||
|
|||||||
Reference in new issue
Block a user