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 Kudryashov
2012-03-14 12:59:05 +04:00
parent dfa230991a
commit aaf925e837
@@ -273,7 +273,7 @@ public class ActionMenuItem extends JCheckBoxMenuItem {
myToggled = Boolean.TRUE.equals(myEvent.getPresentation().getClientProperty(Toggleable.SELECTED_PROPERTY));
if ((ActionPlaces.MAIN_MENU.equals(myPlace) && SystemInfo.isMacSystemMenu)
|| UIUtil.isUnderNimbusLookAndFeel()
|| UIUtil.isUnderWindowsLookAndFeel()) {
|| (UIUtil.isUnderWindowsLookAndFeel() && !SystemInfo.isWindowsXP)) {
setState(myToggled);
}
else if (!(getUI() instanceof GtkMenuItemUI)) {