2
0
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:
John Preston
2019-06-28 13:33:47 +02:00
parent 4a7b5a8e01
commit cbffeca8d5
23 changed files with 363 additions and 272 deletions

View File

@@ -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);