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

Remove old download priority arguments.

This commit is contained in:
John Preston
2019-04-12 15:52:39 +04:00
parent b2895a39ed
commit eb438e35ee
14 changed files with 188 additions and 292 deletions

View File

@@ -131,10 +131,7 @@ void GoodThumbSource::ready(
});
}
void GoodThumbSource::load(
Data::FileOrigin origin,
bool loadFirst,
bool prior) {
void GoodThumbSource::load(Data::FileOrigin origin) {
if (loading() || _empty) {
return;
}
@@ -163,12 +160,9 @@ void GoodThumbSource::load(
std::move(callback));
}
void GoodThumbSource::loadEvenCancelled(
Data::FileOrigin origin,
bool loadFirst,
bool prior) {
void GoodThumbSource::loadEvenCancelled(Data::FileOrigin origin) {
_empty = false;
load(origin, loadFirst, prior);
load(origin);
}
QImage GoodThumbSource::takeLoaded() {

View File

@@ -17,14 +17,8 @@ class GoodThumbSource : public Images::Source {
public:
explicit GoodThumbSource(not_null<DocumentData*> document);
void load(
Data::FileOrigin origin,
bool loadFirst,
bool prior) override;
void loadEvenCancelled(
Data::FileOrigin origin,
bool loadFirst,
bool prior) override;
void load(Data::FileOrigin origin) override;
void loadEvenCancelled(Data::FileOrigin origin) override;
QImage takeLoaded() override;
void unload() override;

View File

@@ -239,8 +239,8 @@ void PeerData::paintUserpicSquare(Painter &p, int x, int y, int size) const {
}
}
void PeerData::loadUserpic(bool loadFirst, bool prior) {
_userpic->load(userpicOrigin(), loadFirst, prior);
void PeerData::loadUserpic() {
_userpic->load(userpicOrigin());
}
bool PeerData::userpicLoaded() const {

View File

@@ -229,7 +229,7 @@ public:
int x,
int y,
int size) const;
void loadUserpic(bool loadFirst = false, bool prior = true);
void loadUserpic();
[[nodiscard]] bool userpicLoaded() const;
[[nodiscard]] bool useEmptyUserpic() const;
[[nodiscard]] InMemoryKey userpicUniqueKey() const;