2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-02 15:35:51 +00:00

gif autoplay improved

This commit is contained in:
John Preston
2015-12-23 22:23:14 +03:00
parent 6170144fe9
commit b94533fcb2
18 changed files with 401 additions and 226 deletions

View File

@@ -410,7 +410,7 @@ protected:
return !_data->loader;
}
virtual bool dataLoaded() const {
return !_data->already().isEmpty() || !_data->data.isEmpty();
return _data->loaded();
}
virtual bool iconAnimated() const {
return _data->song() || !dataLoaded() || (_radial && _radial->animating());
@@ -419,7 +419,7 @@ protected:
private:
OverviewItemInfo _info;
DocumentData *_data;
TextLinkPtr _msgl;
TextLinkPtr _msgl, _namel;
QString _name, _date, _ext;
int32 _namew, _datew, _extw;