From f493d69bd26c541c5d244d2138df96a0cfe8616c Mon Sep 17 00:00:00 2001 From: John Preston Date: Thu, 27 Sep 2018 23:41:49 +0300 Subject: [PATCH] Fix emoji button with disabled animations. --- Telegram/SourceFiles/ui/special_buttons.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/ui/special_buttons.cpp b/Telegram/SourceFiles/ui/special_buttons.cpp index e072b8449..f506311b1 100644 --- a/Telegram/SourceFiles/ui/special_buttons.cpp +++ b/Telegram/SourceFiles/ui/special_buttons.cpp @@ -201,7 +201,7 @@ void EmojiButton::paintEvent(QPaintEvent *e) { : (over ? st::historyEmojiCircleFgOver : st::historyEmojiCircleFg)); - if (_loading && anim::Disabled()) { + if (anim::Disabled() && _loading && _loading->animating()) { anim::DrawStaticLoading( p, inner,