IDEA-79867 Windows, JGoodies Windows look and feel: "tick" symbol is not shown for selected items of tool window menu

This commit is contained in:
Vassiliy
2012-03-12 16:18:16 +04:00
parent b3a8533ad8
commit 62d1f85940
@@ -271,8 +271,7 @@ public class ActionMenuItem extends JCheckBoxMenuItem {
if (isToggleable() && myPresentation.getIcon() == null) {
action.update(myEvent);
myToggled = Boolean.TRUE.equals(myEvent.getPresentation().getClientProperty(Toggleable.SELECTED_PROPERTY));
if (ActionPlaces.MAIN_MENU.equals(myPlace) && SystemInfo.isMacSystemMenu ||
UIUtil.isUnderWindowsLookAndFeel() || UIUtil.isUnderNimbusLookAndFeel()) {
if ((ActionPlaces.MAIN_MENU.equals(myPlace) && SystemInfo.isMacSystemMenu) || UIUtil.isUnderNimbusLookAndFeel()) {
setState(myToggled);
}
else if (!(getUI() instanceof GtkMenuItemUI)) {