Skip to content

Commit

Permalink
Continue testing returned _thumb images if a valid image file hasn't …
Browse files Browse the repository at this point in the history
…been found
  • Loading branch information
alcomposer committed Dec 3, 2024
1 parent d28e257 commit 8d86405
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Source/Components/WelcomePanel.h
Original file line number Diff line number Diff line change
Expand Up @@ -805,7 +805,8 @@ class WelcomePanel : public Component
FileInputStream fileStream(thumb);
if (fileStream.openedOk()) {
thumbImage = ImageFileFormat::loadFrom(fileStream).convertedToFormat(Image::ARGB);
break;
if (thumbImage.isValid())
break;
}
}
String placeholderIcon;
Expand Down

0 comments on commit 8d86405

Please sign in to comment.