mirror of
https://github.com/vale981/tdesktop
synced 2025-03-06 10:11:41 -05:00
parent
2a7fdfc832
commit
a0b3b1affd
1 changed files with 5 additions and 6 deletions
|
@ -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…
Add table
Reference in a new issue