Skip to content

Commit

Permalink
Properly display sample for ugoira preview
Browse files Browse the repository at this point in the history
  • Loading branch information
Bionus committed May 4, 2022
1 parent ba18ae7 commit 8846c39
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib/src/models/image.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -783,8 +783,9 @@ Image::Size Image::preferredDisplaySize() const
{
const bool getOriginals = m_settings->value("Save/downloadoriginals", true).toBool();
const bool viewSample = m_settings->value("Viewer/viewSamples", false).toBool();
const bool isZip = getExtension(url(Size::Full)) == "zip";

return !url(Size::Sample).isEmpty() && (!getOriginals || viewSample)
return !url(Size::Sample).isEmpty() && (!getOriginals || viewSample || isZip)
? Size::Sample
: Size::Full;
}
Expand Down

0 comments on commit 8846c39

Please sign in to comment.