mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
sometimes selection jumps to 0 when speedsearching
This commit is contained in:
@@ -1090,9 +1090,6 @@ public class Switcher extends AnAction implements DumbAware {
|
||||
|
||||
@Override
|
||||
public void propertyChange(@NotNull PropertyChangeEvent evt) {
|
||||
final JBList list = getSelectedList();
|
||||
final Object value = list.getSelectedValue();
|
||||
|
||||
if (project.isDisposed()) {
|
||||
myPopup.cancel();
|
||||
return;
|
||||
@@ -1107,11 +1104,6 @@ public class Switcher extends AnAction implements DumbAware {
|
||||
files.getEmptyText().setText(StatusText.DEFAULT_EMPTY_TEXT);
|
||||
toolWindows.getEmptyText().setText(StatusText.DEFAULT_EMPTY_TEXT);
|
||||
}
|
||||
files.repaint();
|
||||
toolWindows.repaint();
|
||||
if (value != null) {
|
||||
ScrollingUtil.ensureSelectionExists(getSelectedList(list));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user