mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-12-16 11:48:06 +01:00
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:
@@ -38,7 +38,7 @@ namespace Wox.Infrastructure.Image
|
|||||||
foreach (var key in _data.Keys)
|
foreach (var key in _data.Keys)
|
||||||
{
|
{
|
||||||
int dictValue;
|
int dictValue;
|
||||||
if (!Usage.TryGetValue(key, out dictValue))
|
if (!Usage.TryGetValue(key, out dictValue) && !(key.Equals(Constant.ErrorIcon) || key.Equals(Constant.DefaultIcon)))
|
||||||
{
|
{
|
||||||
ImageSource imgSource;
|
ImageSource imgSource;
|
||||||
_data.TryRemove(key, out imgSource);
|
_data.TryRemove(key, out imgSource);
|
||||||
|
|||||||
Reference in New Issue
Block a user