@@ -20,7 +20,7 @@ public static class ImageLoader
20
20
private static Lock storageLock { get ; } = new ( ) ;
21
21
private static BinaryStorage < List < ( string , bool ) > > _storage ;
22
22
private static readonly ConcurrentDictionary < string , string > GuidToKey = new ( ) ;
23
- private static IImageHashGenerator _hashGenerator ;
23
+ private static ImageHashGenerator _hashGenerator ;
24
24
private static readonly bool EnableImageHash = true ;
25
25
public static ImageSource Image => ImageCache [ Constant . ImageIcon , false ] ;
26
26
public static ImageSource MissingImage => ImageCache [ Constant . MissingImgIcon , false ] ;
@@ -29,7 +29,7 @@ public static class ImageLoader
29
29
public const int FullIconSize = 256 ;
30
30
public const int FullImageSize = 320 ;
31
31
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" ] ;
33
33
private static readonly string SvgExtension = ".svg" ;
34
34
35
35
public static async Task InitializeAsync ( )
@@ -271,7 +271,7 @@ public static async ValueTask<ImageSource> LoadAsync(string path, bool loadFullI
271
271
return img ;
272
272
}
273
273
274
- private static ImageSource LoadFullImage ( string path )
274
+ private static BitmapImage LoadFullImage ( string path )
275
275
{
276
276
BitmapImage image = new BitmapImage ( ) ;
277
277
image . BeginInit ( ) ;
0 commit comments