Browse Source

Do not clear cached images from file system when resources change.

pull/63/merge
Matt Ward 13 years ago
parent
commit
2f2d22f3c6
  1. 12
      src/Main/Base/Project/Src/Services/FileIconService.cs

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

@ -16,18 +16,6 @@ namespace ICSharpCode.SharpDevelop @@ -16,18 +16,6 @@ namespace ICSharpCode.SharpDevelop
{
static Dictionary<string, Bitmap> bitmapCache = new Dictionary<string, Bitmap>();
static FileIconService()
{
ResourceService.ClearCaches += ResourceService_ClearCaches;
}
static void ResourceService_ClearCaches(object sender, EventArgs e)
{
lock (bitmapCache) {
bitmapCache.Clear();
}
}
/// <summary>
/// Returns a bitmap from the file system. Placeholders like ${SharpDevelopBinPath}
/// and AddinPath (e. g. ${AddInPath:ICSharpCode.FiletypeRegisterer}) are resolved

Loading…
Cancel
Save