From 756e718775c479658bd8a233430167c7460c810a Mon Sep 17 00:00:00 2001 From: Jack251970 <1160210343@qq.com> Date: Wed, 27 Nov 2024 19:46:30 +0800 Subject: [PATCH] Regard format not support files as error type --- Flow.Launcher.Infrastructure/Image/ImageLoader.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Flow.Launcher.Infrastructure/Image/ImageLoader.cs b/Flow.Launcher.Infrastructure/Image/ImageLoader.cs index c5bba9fed..4592269a2 100644 --- a/Flow.Launcher.Infrastructure/Image/ImageLoader.cs +++ b/Flow.Launcher.Infrastructure/Image/ImageLoader.cs @@ -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);