Skip to content

Commit 3f413d1

Browse files
committed
Update image for format not supported images
1 parent 4830988 commit 3f413d1

File tree

4 files changed

+3
-3
lines changed

4 files changed

+3
-3
lines changed

Flow.Launcher.Infrastructure/Constant.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public static class Constant
3131
public static readonly string ErrorIcon = Path.Combine(ImagesDirectory, "app_error.png");
3232
public static readonly string MissingImgIcon = Path.Combine(ImagesDirectory, "app_missing_img.png");
3333
public static readonly string LoadingImgIcon = Path.Combine(ImagesDirectory, "loading.png");
34-
public static readonly string NoImageIcon = Path.Combine(ImagesDirectory, "no_image.png");
34+
public static readonly string ImageIcon = Path.Combine(ImagesDirectory, "image.png");
3535

3636
public static string PythonPath;
3737
public static string NodePath;

Flow.Launcher.Infrastructure/Image/ImageLoader.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public static class ImageLoader
2222
private static readonly ConcurrentDictionary<string, string> GuidToKey = new();
2323
private static IImageHashGenerator _hashGenerator;
2424
private static readonly bool EnableImageHash = true;
25-
public static ImageSource NoImage { get; } = new BitmapImage(new Uri(Constant.NoImageIcon));
25+
public static ImageSource Image { get; } = new BitmapImage(new Uri(Constant.ImageIcon));
2626
public static ImageSource MissingImage { get; } = new BitmapImage(new Uri(Constant.MissingImgIcon));
2727
public static ImageSource LoadingImage { get; } = new BitmapImage(new Uri(Constant.LoadingImgIcon));
2828
public const int SmallIconSize = 64;
@@ -223,7 +223,7 @@ private static ImageResult GetThumbnailResult(ref string path, bool loadFullImag
223223
}
224224
catch (NotSupportedException)
225225
{
226-
image = NoImage;
226+
image = Image;
227227
type = ImageType.Error;
228228
}
229229
}

Flow.Launcher/Images/image.png

435 Bytes
Loading

Flow.Launcher/Images/no_image.png

-2 KB
Binary file not shown.

0 commit comments

Comments
 (0)