Skip to content
This repository was archived by the owner on Nov 27, 2023. It is now read-only.

Commit ec302a2

Browse files
committed
Fix display glitch when sending a single “Done” event with no previous “Working” event ont he same ID
Signed-off-by: Guillaume Tardif <[email protected]>
1 parent 58e10a7 commit ec302a2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

api/progress/tty.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,9 @@ func (w *ttyWriter) Event(e Event) {
8484
} else {
8585
e.startTime = time.Now()
8686
e.spinner = newSpinner()
87+
if e.Status == Done || e.Status == Error {
88+
e.stop()
89+
}
8790
w.events[e.ID] = e
8891
}
8992
}

0 commit comments

Comments
 (0)