Fix pinned bar consecutive animations.

This commit is contained in:
John Preston 2020-10-29 15:21:49 +03:00
parent 793ec84098
commit 78492386c4
1 changed files with 3 additions and 2 deletions

View File

@ -341,8 +341,9 @@ void MessageBar::paint(Painter &p) {
if (!_image.isNull()) {
p.drawPixmap(image, _image);
}
} else if (!_animation->imageFrom.isNull()
|| !_animation->imageTo.isNull()) {
} else if (!_animation->imageTo.isNull()
|| (!_animation->imageFrom.isNull()
&& _animation->imageShown.animating())) {
const auto rect = [&] {
if (!_animation->imageShown.animating()) {
return image;