status: invalidate when needed

In order for the message to actually show up we need to invalidate after setting
the status stack.
This commit is contained in:
Reto Brunner 2020-07-03 08:12:50 +02:00
parent fc2c6fff0d
commit 6abe1c708f

View file

@ -81,6 +81,7 @@ func (status *StatusLine) Push(text string, expiry time.Duration) *StatusMessage
} }
status.Invalidate() status.Invalidate()
})() })()
status.Invalidate()
return msg return msg
} }