Skip to content

Commit 4e534b5

Browse files
arjunbalgovindjjw24
authored andcommitted
Skip ErrorIcon and DefaultIcon while resizing the dictionary. From arjunbalgovind:user/arbalgov/apperrorFix
1 parent ca08e60 commit 4e534b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Flow.Launcher.Infrastructure/Image/ImageCache.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public ImageSource this[string path]
3838
foreach (var key in _data.Keys)
3939
{
4040
int dictValue;
41-
if (!Usage.TryGetValue(key, out dictValue))
41+
if (!Usage.TryGetValue(key, out dictValue) && !(key.Equals(Constant.ErrorIcon) || key.Equals(Constant.DefaultIcon)))
4242
{
4343
ImageSource imgSource;
4444
_data.TryRemove(key, out imgSource);

0 commit comments

Comments
 (0)