mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
parent
9a597f2b4d
commit
bbc12ec041
1 changed files with 2 additions and 3 deletions
|
|
@ -15,9 +15,8 @@ public static class WallpaperPathRetrieval
|
||||||
{
|
{
|
||||||
private static readonly string ClassName = nameof(WallpaperPathRetrieval);
|
private static readonly string ClassName = nameof(WallpaperPathRetrieval);
|
||||||
|
|
||||||
// Disable cache feature because some wallpaper applications (like Wallpaper Engine) may change wallpaper frequently
|
private const int MaxCacheSize = 3;
|
||||||
private const int MaxCacheSize = 0;//3;
|
private static readonly Dictionary<(string, DateTime), ImageBrush> WallpaperCache = new();
|
||||||
private static readonly Dictionary<(string, DateTime), ImageBrush> WallpaperCache = [];
|
|
||||||
private static readonly Lock CacheLock = new();
|
private static readonly Lock CacheLock = new();
|
||||||
|
|
||||||
public static Brush GetWallpaperBrush()
|
public static Brush GetWallpaperBrush()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue