Skip to content

Commit aecc8ca

Browse files
Jack251970TBM13
authored andcommitted
Merge pull request Flow-Launcher#3986 from Flow-Launcher/wallpaper_lock
Fix Wallpaper File Lock
1 parent 55264a9 commit aecc8ca

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Flow.Launcher.Infrastructure/Image/ImageLoader.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public static class ImageLoader
2020
private static Lock storageLock { get; } = new();
2121
private static BinaryStorage<List<(string, bool)>> _storage;
2222
private static readonly ConcurrentDictionary<string, string> GuidToKey = new();
23-
private static IImageHashGenerator _hashGenerator;
23+
private static ImageHashGenerator _hashGenerator;
2424
private static readonly bool EnableImageHash = true;
2525
public static ImageSource Image => ImageCache[Constant.ImageIcon, false];
2626
public static ImageSource MissingImage => ImageCache[Constant.MissingImgIcon, false];
@@ -29,7 +29,7 @@ public static class ImageLoader
2929
public const int FullIconSize = 256;
3030
public const int FullImageSize = 320;
3131

32-
private static readonly string[] ImageExtensions = { ".png", ".jpg", ".jpeg", ".gif", ".bmp", ".tiff", ".ico" };
32+
private static readonly string[] ImageExtensions = [".png", ".jpg", ".jpeg", ".gif", ".bmp", ".tiff", ".ico"];
3333
private static readonly string SvgExtension = ".svg";
3434

3535
public static async Task InitializeAsync()
@@ -271,7 +271,7 @@ public static async ValueTask<ImageSource> LoadAsync(string path, bool loadFullI
271271
return img;
272272
}
273273

274-
private static ImageSource LoadFullImage(string path)
274+
private static BitmapImage LoadFullImage(string path)
275275
{
276276
BitmapImage image = new BitmapImage();
277277
image.BeginInit();

0 commit comments

Comments
 (0)