ribbon show fix

message halted changed
This commit is contained in:
Jindra Petřík
2015-11-17 22:45:22 +01:00
parent c6b6e35f07
commit 78c5c6b55f
3 changed files with 12 additions and 2 deletions

View File

@@ -608,6 +608,16 @@ public class MainFrameRibbonMenu extends MainFrameMenu {
Object o = menuItems.get(path);
if (o instanceof RibbonTask) {
if (menuOptional.get(path)) {
View.execInEventDispatch(new Runnable() {
@Override
public void run() {
if (!ribbon.isVisible(optinalGroups.get(path))) {
ribbon.setVisible(optinalGroups.get(path), true);
}
ribbon.setSelectedTask((RibbonTask) o);
}
});
return;
}
final RibbonTask rt = (RibbonTask) o;