From ec302a2e1029dae3570cb334b60d76e0be02d009 Mon Sep 17 00:00:00 2001 From: Guillaume Tardif Date: Mon, 8 Feb 2021 17:21:18 +0100 Subject: [PATCH] =?UTF-8?q?Fix=20display=20glitch=20when=20sending=20a=20s?= =?UTF-8?q?ingle=20=E2=80=9CDone=E2=80=9D=20event=20with=20no=20previous?= =?UTF-8?q?=20=E2=80=9CWorking=E2=80=9D=20event=20ont=20he=20same=20ID?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Guillaume Tardif --- api/progress/tty.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/api/progress/tty.go b/api/progress/tty.go index 5465e7e0..36999cf8 100644 --- a/api/progress/tty.go +++ b/api/progress/tty.go @@ -84,6 +84,9 @@ func (w *ttyWriter) Event(e Event) { } else { e.startTime = time.Now() e.spinner = newSpinner() + if e.Status == Done || e.Status == Error { + e.stop() + } w.events[e.ID] = e } }