You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -60,20 +62,29 @@ public ImageSource this[string path]
60
62
}
61
63
);
62
64
63
-
// 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
64
-
// This is done so that we don't constantly perform this resizing operation and also maintain the image cache size at the same time
65
-
if(Data.Count>permissibleFactor*MaxCached)
65
+
SliceExtra();
66
+
67
+
asyncvoidSliceExtra()
66
68
{
67
-
// To delete the images from the data dictionary based on the resizing of the Usage Dictionary.
// 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
70
+
// This is done so that we don't constantly perform this resizing operation and also maintain the image cache size at the same time
71
+
if(Data.Count>permissibleFactor*MaxCached)
72
+
{
73
+
awaitsemaphore.WaitAsync().ConfigureAwait(false);
74
+
// To delete the images from the data dictionary based on the resizing of the Usage Dictionary
Log.Exception($"|ResultViewModel.Image|IcoPath is empty and exception when calling Icon() for result <{Result.Title}> of plugin <{Result.PluginDirectory}>",e);
102
-
returnImageLoader.DefaultImage;
103
68
}
104
69
}
105
70
106
71
if(ImageLoader.CacheContainImage(imagePath))
72
+
{
107
73
// will get here either when icoPath has value\icon delegate is null\when had exception in delegate
0 commit comments