Skip to content

Commit bbc12ec

Browse files
committed
Revert "Disable cache feature"
This reverts commit 9a597f2.
1 parent 9a597f2 commit bbc12ec

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Flow.Launcher/Helper/WallpaperPathRetrieval.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,8 @@ public static class WallpaperPathRetrieval
1515
{
1616
private static readonly string ClassName = nameof(WallpaperPathRetrieval);
1717

18-
// Disable cache feature because some wallpaper applications (like Wallpaper Engine) may change wallpaper frequently
19-
private const int MaxCacheSize = 0;//3;
20-
private static readonly Dictionary<(string, DateTime), ImageBrush> WallpaperCache = [];
18+
private const int MaxCacheSize = 3;
19+
private static readonly Dictionary<(string, DateTime), ImageBrush> WallpaperCache = new();
2120
private static readonly Lock CacheLock = new();
2221

2322
public static Brush GetWallpaperBrush()

0 commit comments

Comments
 (0)