mirror of https://github.com/docker/compose.git
fix: prevent flickering prompt when pulling same image from N services
Signed-off-by: Maxime CLEMENT <maxime.clement@docker.com>
This commit is contained in:
parent
7e3564b7ad
commit
48b150beff
|
@ -83,7 +83,10 @@ func (w *ttyWriter) Event(e Event) {
|
||||||
last.Status = e.Status
|
last.Status = e.Status
|
||||||
last.Text = e.Text
|
last.Text = e.Text
|
||||||
last.StatusText = e.StatusText
|
last.StatusText = e.StatusText
|
||||||
|
// allow set/unset of parent, but not swapping otherwise prompt is flickering
|
||||||
|
if last.ParentID == "" || e.ParentID == "" {
|
||||||
last.ParentID = e.ParentID
|
last.ParentID = e.ParentID
|
||||||
|
}
|
||||||
w.events[e.ID] = last
|
w.events[e.ID] = last
|
||||||
} else {
|
} else {
|
||||||
e.startTime = time.Now()
|
e.startTime = time.Now()
|
||||||
|
|
Loading…
Reference in New Issue