Skip ErrorIcon and DefaultIcon while resizing the dictionary. From arjunbalgovind:user/arbalgov/apperrorFix

This commit is contained in:
Arjun Balgovind 2020-08-10 21:47:46 +10:00 committed by Jeremy Wu
parent ca08e60308
commit 4e534b56ac

View file

@ -38,7 +38,7 @@ namespace Flow.Launcher.Infrastructure.Image
foreach (var key in _data.Keys)
{
int dictValue;
if (!Usage.TryGetValue(key, out dictValue))
if (!Usage.TryGetValue(key, out dictValue) && !(key.Equals(Constant.ErrorIcon) || key.Equals(Constant.DefaultIcon)))
{
ImageSource imgSource;
_data.TryRemove(key, out imgSource);