We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 988076f commit c4a89d7Copy full SHA for c4a89d7
RetailCoder.VBE/UI/Command/MenuItems/ParentMenus/ParentMenuItemBase.cs
@@ -163,12 +163,12 @@ private ICommandBarControl InitializeChildControl(ICommandMenuItem item)
163
}
164
165
// note: HAAAAACK!!!
166
- private static int _lastHashCode;
+ private static int? _lastHashCode;
167
168
private void child_Click(object sender, CommandBarButtonClickEventArgs e)
169
{
170
var item = _items.Select(kvp => kvp.Key).SingleOrDefault(menu => menu.GetType().FullName == e.Control.Tag) as ICommandMenuItem;
171
- if (item == null || e.Control.Target.GetHashCode() == _lastHashCode)
+ if (item == null || (_lastHashCode.HasValue && e.Control.Target.GetHashCode() != _lastHashCode.Value))
172
173
return;
174
0 commit comments