Merge pull request #1976 from Dogild/HighlightedDisabledMenu

Fixed: a disabled CPMenuItem could still have a selected background
This commit is contained in:
Alexander Ljungberg
2013-09-23 11:22:27 +01:00
+3
View File
@@ -166,6 +166,9 @@ var CPMenuItemStringRepresentationDictionary = @{
if (_isEnabled === isEnabled)
return;
if (!isEnabled && [self isHighlighted])
[_menu _highlightItemAtIndex:CPNotFound];
_isEnabled = !!isEnabled;
[_menuItemView setDirty];