Skip to content

Commit 756e718

Browse files
committed
Regard format not support files as error type
1 parent a8d69c7 commit 756e718

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Flow.Launcher.Infrastructure/Image/ImageLoader.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,7 @@ private static ImageResult GetThumbnailResult(ref string path, bool loadFullImag
223223
catch (NotSupportedException)
224224
{
225225
image = null;
226+
type = ImageType.Error;
226227
}
227228
}
228229
else
@@ -249,7 +250,7 @@ private static ImageResult GetThumbnailResult(ref string path, bool loadFullImag
249250

250251
if (type != ImageType.Error)
251252
{
252-
image?.Freeze();
253+
image.Freeze();
253254
}
254255

255256
return new ImageResult(image, type);

0 commit comments

Comments
 (0)