Skip ErrorIcon and DefaultIcon while resizing the dictionary (#4520)

* Skip ErrorIcon and DefaultIcon while resizing the dictionary

* Removed autogenerated using statement
This commit is contained in:
Arjun Balgovind
2020-06-26 11:30:04 -07:00
committed by GitHub
parent 403f53a397
commit e3e02aa30b

View File

@@ -38,7 +38,7 @@ namespace Wox.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);