1
0
mirror of https://github.com/Kopano-dev/kopano-ol-extension.git synced 2023-10-10 13:37:40 +02:00

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

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