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

upload radial progress and upload cancel done, photo / file / audio autodownload settings respected

This commit is contained in:
John Preston
2015-12-24 22:26:28 +03:00
parent 7c7d517b34
commit 4ed2d75c74
32 changed files with 2011 additions and 1558 deletions

View File

@@ -323,10 +323,10 @@ protected:
return _data->progress();
}
virtual bool dataFinished() const {
return !_data->loader;
return !_data->loading();
}
virtual bool dataLoaded() const {
return !_data->already().isEmpty();
return _data->loaded();
}
virtual bool iconAnimated() const {
return true;
@@ -363,10 +363,10 @@ protected:
return _data->progress();
}
virtual bool dataFinished() const {
return !_data->loader;
return !_data->loading();
}
virtual bool dataLoaded() const {
return !_data->already().isEmpty() || !_data->data.isEmpty();
return _data->loaded();
}
virtual bool iconAnimated() const {
return true;
@@ -375,6 +375,7 @@ protected:
private:
OverviewItemInfo _info;
AudioData *_data;
TextLinkPtr _namel;
mutable Text _name, _details;
mutable int32 _nameVersion;
@@ -407,13 +408,13 @@ protected:
return _data->progress();
}
virtual bool dataFinished() const {
return !_data->loader;
return !_data->loading();
}
virtual bool dataLoaded() const {
return _data->loaded();
}
virtual bool iconAnimated() const {
return _data->song() || !dataLoaded() || (_radial && _radial->animating());
return _data->song() || !_data->loaded() || (_radial && _radial->animating());
}
private: