Skip to content

Commit 9a597f2

Browse files
committed
Disable cache feature
1 parent fc2e3fe commit 9a597f2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Flow.Launcher/Helper/WallpaperPathRetrieval.cs

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

18-
private const int MaxCacheSize = 3;
19-
private static readonly Dictionary<(string, DateTime), ImageBrush> WallpaperCache = new();
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 = [];
2021
private static readonly Lock CacheLock = new();
2122

2223
public static Brush GetWallpaperBrush()

0 commit comments

Comments
 (0)