2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 14:45:14 +00:00

Fix GIFs preview.

This commit is contained in:
John Preston
2019-07-06 15:24:23 +02:00
parent 8486ad368e
commit 4e595d5cef
2 changed files with 2 additions and 2 deletions

View File

@@ -1161,7 +1161,7 @@ void MediaPreviewWidget::clipCallback(Media::Clip::Notification notification) {
case NotificationRepaint: {
if (_gif && !_gif->currentDisplayed()) {
updateArea();
update(updateArea());
}
} break;
}

View File

@@ -226,7 +226,7 @@ private:
void startShow();
void fillEmojiString();
void resetGifAndCache();
QRect updateArea() const;
[[nodiscard]] QRect updateArea() const;
not_null<Window::SessionController*> _controller;