mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
#WEB-7236 fixed
This commit is contained in:
@@ -116,17 +116,13 @@ public class ContextMenuImpl extends JPanel implements Disposable {
|
||||
}
|
||||
|
||||
private void toggleContextToolbar(final boolean show) {
|
||||
final Component toolbar = myComponent.getComponent(0);
|
||||
final int count = ((Container)toolbar).getComponentCount();
|
||||
if (count == 0) {
|
||||
myActionToolbar.updateActionsImmediately();
|
||||
if (((Container)myActionToolbar).getComponentCount() == 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (myShow != show) {
|
||||
myShow = show;
|
||||
if (myShow && myActionToolbar != null) {
|
||||
myActionToolbar.updateActionsImmediately();
|
||||
}
|
||||
restartTimer();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -80,7 +80,7 @@ public abstract class OpenInBrowserBaseGroupAction extends ComputableActionGroup
|
||||
|
||||
@Override
|
||||
public void update(@NotNull AnActionEvent e) {
|
||||
e.getPresentation().setVisible(!WebBrowserManager.getInstance().getBrowsers().isEmpty());
|
||||
e.getPresentation().setVisible(!WebBrowserManager.getInstance().getActiveBrowsers().isEmpty());
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user