Fixed always loading 1x, 2x and 3x images

This commit is contained in:
fourtf
2019-08-13 13:42:38 +02:00
parent 294c2aecdc
commit 6274c05520
5 changed files with 19 additions and 10 deletions
+8 -1
View File
@@ -275,7 +275,14 @@ const Url &Image::url() const
return this->url_;
}
boost::optional<QPixmap> Image::pixmap() const
bool Image::loaded() const
{
assertInGuiThread();
return bool(this->frames_->current());
}
boost::optional<QPixmap> Image::pixmapOrLoad() const
{
assertInGuiThread();