From 7b7d6d03ec1a1cf6480f06aa80780bdf8376587e Mon Sep 17 00:00:00 2001 From: shckltn <160071510+shckltn@users.noreply.github.com> Date: Mon, 24 Jun 2024 15:26:51 -0400 Subject: [PATCH] unfold nodebox items by default; Before when searching for nodes the categories wouldn't unfold by default. This should fix that. --- PyFlow/UI/Views/NodeBox.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PyFlow/UI/Views/NodeBox.py b/PyFlow/UI/Views/NodeBox.py index aacba29d..bd963877 100644 --- a/PyFlow/UI/Views/NodeBox.py +++ b/PyFlow/UI/Views/NodeBox.py @@ -544,7 +544,7 @@ def expandCategory(self): item = self.treeWidget.topLevelItem(i) if item.text(0) in self.treeWidget.categoryPaths: index = self.treeWidget.indexFromItem(item) - self.treeWidget.setExpanded(index, True) + self.treeWidget.expandRecursively(index) def leTextChanged(self): if self.lineEdit.text() == "":