mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-02-24 17:26:58 +00:00
parent
2a7fdfc832
commit
a0b3b1affd
@ -146,12 +146,11 @@ void FadeAnimation::startAnimation(int duration) {
|
||||
}
|
||||
|
||||
void FadeAnimation::updateCallback() {
|
||||
if (_animation.animating()) {
|
||||
_widget->update();
|
||||
if (_updatedCallback) {
|
||||
_updatedCallback(_animation.value(_visible ? 1. : 0.));
|
||||
}
|
||||
} else {
|
||||
_widget->update();
|
||||
if (_updatedCallback) {
|
||||
_updatedCallback(_animation.value(_visible ? 1. : 0.));
|
||||
}
|
||||
if (!_animation.animating()) {
|
||||
stopAnimation();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user