fixed emote preview not using 3x images

This commit is contained in:
fourtf
2019-08-21 01:44:19 +02:00
parent 67aadfe61f
commit dbc20baa65
5 changed files with 53 additions and 30 deletions
+11 -4
View File
@@ -286,13 +286,20 @@ boost::optional<QPixmap> Image::pixmapOrLoad() const
{
assertInGuiThread();
this->load();
return this->frames_->current();
}
void Image::load() const
{
assertInGuiThread();
if (this->shouldLoad_)
{
const_cast<Image *>(this)->shouldLoad_ = false;
const_cast<Image *>(this)->load();
const_cast<Image *>(this)->actuallyLoad();
}
return this->frames_->current();
}
qreal Image::scale() const
@@ -332,7 +339,7 @@ int Image::height() const
return 16;
}
void Image::load()
void Image::actuallyLoad()
{
NetworkRequest(this->url().string)
.concurrent()