mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
one instance of NavBarPanel is always in the frame, so skip events if !isShowing()
This commit is contained in:
@@ -157,11 +157,15 @@ public class NavBarListener extends WolfTheProblemSolver.ProblemListener
|
||||
}
|
||||
|
||||
private void rebuildUI() {
|
||||
myPanel.queueRebuildUi();
|
||||
if (myPanel.isShowing()) {
|
||||
myPanel.queueRebuildUi();
|
||||
}
|
||||
}
|
||||
|
||||
private void updateModel() {
|
||||
myPanel.queueModelUpdateFromFocus();
|
||||
if (myPanel.isShowing()) {
|
||||
myPanel.queueModelUpdateFromFocus();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -222,9 +226,11 @@ public class NavBarListener extends WolfTheProblemSolver.ProblemListener
|
||||
|
||||
@Override
|
||||
public void propertyChange(PropertyChangeEvent evt) {
|
||||
final String name = evt.getPropertyName();
|
||||
if ("focusOwner".equals(name) || "permanentFocusOwner".equals(name)) {
|
||||
myPanel.restartRebuild();
|
||||
if (myPanel.isShowing()) {
|
||||
final String name = evt.getPropertyName();
|
||||
if ("focusOwner".equals(name) || "permanentFocusOwner".equals(name)) {
|
||||
myPanel.restartRebuild();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user