Change ErrorIcon to MissingImgIcon in ImageCache check since we don't use ErrorIcon anymore

This commit is contained in:
弘韬 张 2020-11-27 08:46:59 +08:00
parent 1c6769cbcc
commit 05aa7062d7

View file

@ -66,7 +66,7 @@ namespace Flow.Launcher.Infrastructure.Image
{
// 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.ErrorIcon
.Where(x => x.Key != Constant.MissingImgIcon
&& x.Key != Constant.DefaultIcon)
.OrderBy(x => x.Value.usage).Take(Data.Count - MaxCached).Select(x => x.Key))
{