optional ribbon fix

This commit is contained in:
Jindra Petřík
2015-11-17 22:31:03 +01:00
parent 40ed5a5f48
commit c6b6e35f07

View File

@@ -607,7 +607,10 @@ public class MainFrameRibbonMenu extends MainFrameMenu {
public void hilightPath(String path) {
Object o = menuItems.get(path);
if (o instanceof RibbonTask) {
RibbonTask rt = (RibbonTask) o;
if (menuOptional.get(path)) {
return;
}
final RibbonTask rt = (RibbonTask) o;
View.execInEventDispatch(new Runnable() {
@Override