Fixed undisposed wrapper in secondary contacts

This commit is contained in:
Patrick Simpson 2017-09-26 16:51:36 +02:00
parent 06e90bed30
commit a76c2f06e5
1 changed files with 2 additions and 1 deletions

View File

@ -126,8 +126,9 @@ namespace Acacia.Features.SecondaryContacts
// Update the icon.
using (IExplorer explorer = ThisAddIn.Instance.GetActiveExplorer())
using (ICommandBars cmdBars = explorer.GetCommandBars())
using (IPicture icon = cmdBars.GetMso("ShowContactPage").GetPicture(new Size(16, 16)))
{
folder.SetCustomIcon(cmdBars.GetMso("ShowContactPage").GetPicture(new Size(16, 16)));
folder.SetCustomIcon(icon);
}
// Patch the name