Skip to content
This repository was archived by the owner on Oct 16, 2020. It is now read-only.

Commit 2f2d22f

Browse files
committed
Do not clear cached images from file system when resources change.
1 parent 31e96db commit 2f2d22f

1 file changed

Lines changed: 0 additions & 12 deletions

File tree

src/Main/Base/Project/Src/Services/FileIconService.cs

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,6 @@ public static class FileIconService
1616
{
1717
static Dictionary<string, Bitmap> bitmapCache = new Dictionary<string, Bitmap>();
1818

19-
static FileIconService()
20-
{
21-
ResourceService.ClearCaches += ResourceService_ClearCaches;
22-
}
23-
24-
static void ResourceService_ClearCaches(object sender, EventArgs e)
25-
{
26-
lock (bitmapCache) {
27-
bitmapCache.Clear();
28-
}
29-
}
30-
3119
/// <summary>
3220
/// Returns a bitmap from the file system. Placeholders like ${SharpDevelopBinPath}
3321
/// and AddinPath (e. g. ${AddInPath:ICSharpCode.FiletypeRegisterer}) are resolved

0 commit comments

Comments
 (0)