fix formatting

This commit is contained in:
Jeremy Wu 2020-11-12 13:34:23 +11:00
parent 822621dd3b
commit 26285abfd7

View file

@ -44,16 +44,21 @@ namespace Flow.Launcher.Infrastructure.Image
value.usage++;
return value.imageSource;
}
else return null;
return null;
}
set
{
Data.AddOrUpdate(path, new ImageUsage(0, value), (k, v) =>
{
v.imageSource = value;
v.usage++;
return v;
});
Data.AddOrUpdate(
path,
new ImageUsage(0, value),
(k, v) =>
{
v.imageSource = value;
v.usage++;
return v;
}
);
// To prevent the dictionary from drastically increasing in size by caching images, the dictionary size is not allowed to grow more than the permissibleFactor * maxCached size
// This is done so that we don't constantly perform this resizing operation and also maintain the image cache size at the same time
@ -73,7 +78,6 @@ namespace Flow.Launcher.Infrastructure.Image
}
}
public bool ContainsKey(string key)
{
var contains = Data.ContainsKey(key);