From 1b58c7086ec7cd9f5bc32780e483f13f302a201c Mon Sep 17 00:00:00 2001 From: Nikolay Rykunov Date: Wed, 20 Jul 2022 18:00:31 +0200 Subject: [PATCH] [welcome screen] IDEA-297659: Build tree in constructor Previously, tree was built because of installSearchField call that calls searchModel.updateStructure inside. So if SearchField is not installed some code won't work properly (e.g. nodes expanding/selecting) GitOrigin-RevId: 5c95845680d749f3e493e228fb333d87473c8209 --- .../welcomeScreen/recentProjects/RecentProjectFilteringTree.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/platform/platform-impl/src/com/intellij/openapi/wm/impl/welcomeScreen/recentProjects/RecentProjectFilteringTree.kt b/platform/platform-impl/src/com/intellij/openapi/wm/impl/welcomeScreen/recentProjects/RecentProjectFilteringTree.kt index 4dfe5fc25154..88c4a29a0065 100644 --- a/platform/platform-impl/src/com/intellij/openapi/wm/impl/welcomeScreen/recentProjects/RecentProjectFilteringTree.kt +++ b/platform/platform-impl/src/com/intellij/openapi/wm/impl/welcomeScreen/recentProjects/RecentProjectFilteringTree.kt @@ -95,6 +95,8 @@ internal class RecentProjectFilteringTree( setExpandableItemsEnabled(false) UIUtil.setCursor(this, Cursor.getPredefinedCursor(Cursor.HAND_CURSOR)) } + + searchModel.updateStructure() } fun updateTree() {