File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -15,9 +15,9 @@ namespace Flow.Launcher.Helper;
15
15
public static class WallpaperPathRetrieval
16
16
{
17
17
private static readonly int MAX_PATH = 260 ;
18
+ private static readonly int MAX_CACHE_SIZE = 3 ;
18
19
19
20
private static readonly Dictionary < ( string , DateTime ) , ImageBrush > wallpaperCache = new ( ) ;
20
- private const int MaxCacheSize = 3 ;
21
21
22
22
public static Brush GetWallpaperBrush ( )
23
23
{
@@ -54,7 +54,7 @@ public static Brush GetWallpaperBrush()
54
54
wallpaperBrush . Freeze ( ) ; // Make the brush thread-safe
55
55
56
56
// Manage cache size
57
- if ( wallpaperCache . Count >= MaxCacheSize )
57
+ if ( wallpaperCache . Count >= MAX_CACHE_SIZE )
58
58
{
59
59
// Remove the oldest wallpaper from the cache
60
60
var oldestCache = wallpaperCache . Keys . OrderBy ( k => k . Item2 ) . FirstOrDefault ( ) ;
You can’t perform that action at this time.
0 commit comments