mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
revert unneeded condition on Constant.MissingImgIcon
This commit is contained in:
parent
efcb6a7833
commit
ac945f4814
2 changed files with 9 additions and 8 deletions
|
|
@ -66,10 +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.MissingImgIcon)
|
||||
.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))
|
||||
{
|
||||
if (!(key.Equals(Constant.ErrorIcon) || key.Equals(Constant.DefaultIcon)))
|
||||
{
|
||||
|
|
|
|||
|
|
@ -53,10 +53,14 @@ namespace Flow.Launcher.ViewModel
|
|||
if (result != null)
|
||||
{
|
||||
Result = result;
|
||||
Image = new LazyAsync<ImageSource>(SetImage, ImageLoader.DefaultImage, () =>
|
||||
{
|
||||
OnPropertyChanged(nameof(Image));
|
||||
});
|
||||
|
||||
Image = new LazyAsync<ImageSource>(
|
||||
SetImage,
|
||||
ImageLoader.DefaultImage,
|
||||
() =>
|
||||
{
|
||||
OnPropertyChanged(nameof(Image));
|
||||
});
|
||||
}
|
||||
|
||||
Settings = settings;
|
||||
|
|
|
|||
Loading…
Reference in a new issue