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:
@@ -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() {
|
||||
|
@@ -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;
|
||||
|
||||
|
@@ -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 {
|
||||
|
@@ -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;
|
||||
|
Reference in New Issue
Block a user