Commit 1ee1649a authored by Sergey Malenkov's avatar Sergey Malenkov Committed by intellij-monorepo-bot
Browse files

IDEA-249791: update preferred size of the toolWindows list

(cherry picked from commit fa5a232e86f2ffd144be0e3e45ab930e9ddfc549)

IJ-CR-6968

GitOrigin-RevId: 904c09c98cc2d95b454c4dc34c01a87f5103ae77
parent 0b0f654b
Showing with 4 additions and 1 deletion
+4 -1
......@@ -57,7 +57,6 @@ import com.intellij.util.ui.components.BorderLayoutPanel;
import org.jetbrains.annotations.*;
import javax.swing.*;
import javax.swing.border.Border;
import javax.swing.event.ListSelectionEvent;
import javax.swing.event.ListSelectionListener;
import java.awt.*;
......@@ -769,6 +768,10 @@ public final class Switcher extends BaseSwitcherAction {
files.revalidate();
files.repaint();
// refresh the Recent Locations item
ListModel<SwitcherListItem> toolWindowsModel = toolWindows.getModel();
if (toolWindowsModel instanceof NameFilteringListModel) {
((NameFilteringListModel<?>)toolWindowsModel).refilter();
}
toolWindows.repaint();
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment