Regard format not support files as error type

This commit is contained in:
Jack251970 2024-11-27 19:46:30 +08:00
parent a8d69c7dd9
commit 756e718775

View file

@ -223,6 +223,7 @@ namespace Flow.Launcher.Infrastructure.Image
catch (NotSupportedException)
{
image = null;
type = ImageType.Error;
}
}
else
@ -249,7 +250,7 @@ namespace Flow.Launcher.Infrastructure.Image
if (type != ImageType.Error)
{
image?.Freeze();
image.Freeze();
}
return new ImageResult(image, type);