mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
switched order in loaded image selection
This commit is contained in:
parent
e140905faf
commit
d709b98331
|
@ -92,14 +92,14 @@ const ImagePtr &ImageSet::getImageOrLoaded(float scale) const
|
|||
// prefer other image if selected image is not loaded yet
|
||||
if (result->loaded())
|
||||
return result;
|
||||
else if (this->imageX1_->loaded())
|
||||
return this->imageX1_;
|
||||
else if (this->imageX2_ && !this->imageX2_->isEmpty() &&
|
||||
this->imageX2_->loaded())
|
||||
return this->imageX2_;
|
||||
else if (this->imageX3_ && !this->imageX3_->isEmpty() &&
|
||||
this->imageX3_->loaded())
|
||||
return this->imageX3_;
|
||||
else if (this->imageX2_ && !this->imageX2_->isEmpty() &&
|
||||
this->imageX2_->loaded())
|
||||
return this->imageX2_;
|
||||
else if (this->imageX1_->loaded())
|
||||
return this->imageX1_;
|
||||
else
|
||||
return result;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue