mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-25 20:48:52 +03:00
Cache supported animated image formats
This commit is contained in:
parent
4d54876ea4
commit
f21bf5f97e
1 changed files with 2 additions and 1 deletions
|
@ -33,7 +33,8 @@ MxcAnimatedImage::startDownload()
|
|||
|
||||
QByteArray mimeType = QString::fromStdString(mtx::accessors::mimetype(*event)).toUtf8();
|
||||
|
||||
animatable_ = QMovie::supportedFormats().contains(mimeType.split('/').back());
|
||||
static const auto formats = QMovie::supportedFormats();
|
||||
animatable_ = formats.contains(mimeType.split('/').back());
|
||||
animatableChanged();
|
||||
|
||||
if (!animatable_)
|
||||
|
|
Loading…
Reference in a new issue