Fix pinned bar consecutive animations.
This commit is contained in:
parent
793ec84098
commit
78492386c4
|
@ -341,8 +341,9 @@ void MessageBar::paint(Painter &p) {
|
||||||
if (!_image.isNull()) {
|
if (!_image.isNull()) {
|
||||||
p.drawPixmap(image, _image);
|
p.drawPixmap(image, _image);
|
||||||
}
|
}
|
||||||
} else if (!_animation->imageFrom.isNull()
|
} else if (!_animation->imageTo.isNull()
|
||||||
|| !_animation->imageTo.isNull()) {
|
|| (!_animation->imageFrom.isNull()
|
||||||
|
&& _animation->imageShown.animating())) {
|
||||||
const auto rect = [&] {
|
const auto rect = [&] {
|
||||||
if (!_animation->imageShown.animating()) {
|
if (!_animation->imageShown.animating()) {
|
||||||
return image;
|
return image;
|
||||||
|
|
Loading…
Reference in New Issue