mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 06:35:14 +00:00
Extract some Lottie::Animation code to Lottie::Player.
This commit is contained in:
@@ -932,7 +932,8 @@ Widget::~Widget() = default;
|
||||
|
||||
void Widget::hideFinished() {
|
||||
hide();
|
||||
_controller->disableGifPauseReason(Window::GifPauseReason::InlineResults);
|
||||
_controller->disableGifPauseReason(
|
||||
Window::GifPauseReason::InlineResults);
|
||||
|
||||
_inner->hideFinish(true);
|
||||
_a_show.stop();
|
||||
@@ -953,7 +954,8 @@ void Widget::showStarted() {
|
||||
recountContentMaxHeight();
|
||||
_inner->preloadImages();
|
||||
show();
|
||||
_controller->enableGifPauseReason(Window::GifPauseReason::InlineResults);
|
||||
_controller->enableGifPauseReason(
|
||||
Window::GifPauseReason::InlineResults);
|
||||
startShowAnimation();
|
||||
} else if (_hiding) {
|
||||
startOpacityAnimation(false);
|
||||
|
Reference in New Issue
Block a user