mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Merge ImageCache change
This commit is contained in:
commit
6b9622844c
1 changed files with 1 additions and 6 deletions
|
|
@ -65,13 +65,8 @@ namespace Flow.Launcher.Infrastructure.Image
|
|||
if (Data.Count > permissibleFactor * MaxCached)
|
||||
{
|
||||
// To delete the images from the data dictionary based on the resizing of the Usage Dictionary.
|
||||
foreach (var key in Data
|
||||
.Where(x => x.Key != Constant.MissingImgIcon
|
||||
&& x.Key != Constant.DefaultIcon)
|
||||
.OrderBy(x => x.Value.usage).Take(Data.Count - MaxCached).Select(x => x.Key))
|
||||
{
|
||||
foreach (var key in Data.OrderBy(x => x.Value.usage).Take(Data.Count - MaxCached).Select(x => x.Key))
|
||||
Data.TryRemove(key, out _);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue