mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-18 23:27:09 +02:00
Fix pinned bar consecutive animations.
This commit is contained in:
parent
793ec84098
commit
78492386c4
1 changed files with 3 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue