Skip to content

Commit

Permalink
fix(icon): fix not saving in cache the icon
Browse files Browse the repository at this point in the history
  • Loading branch information
Belphemur committed Apr 5, 2024
1 parent 245d386 commit 8623e72
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ System.Drawing.Icon ExtractAssociatedIcon()
try
{
icon = ExtractAssociatedIcon();
var entry = IconCache.CreateEntry(key);
using var entry = IconCache.CreateEntry(key);
entry.SetValue(icon)
.SetSize(icon.Size.Height * icon.Size.Width)
.SetSlidingExpiration(TimeSpan.FromMinutes(30))
Expand Down

0 comments on commit 8623e72

Please sign in to comment.