Skip to content

Commit

Permalink
mark dirty on task output
Browse files Browse the repository at this point in the history
I think this was a real bug.  Its symptom would be that after a task produced
output, if nothing else happened, we might wait a while before updating the UI.

From looking at #68, but won't fix it.
  • Loading branch information
evmar committed Aug 29, 2023
1 parent f99ee6a commit 84c14c0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/progress.rs
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,7 @@ impl FancyState {
fn task_output(&mut self, id: BuildId, line: Vec<u8>) {
let task = self.tasks.iter_mut().find(|t| t.id == id).unwrap();
task.last_line = Some(String::from_utf8_lossy(&line).into_owned());
self.dirty();
}

fn task_finished(&mut self, id: BuildId, build: &Build, result: &TaskResult) {
Expand Down

0 comments on commit 84c14c0

Please sign in to comment.