mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Regard format not support files as error type
This commit is contained in:
parent
a8d69c7dd9
commit
756e718775
1 changed files with 2 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue