diff --git a/diylc/diylc-swing/src/org/diylc/swing/plugins/tree/TreePanel.java b/diylc/diylc-swing/src/org/diylc/swing/plugins/tree/TreePanel.java
index 8a258347..9d067e23 100644
--- a/diylc/diylc-swing/src/org/diylc/swing/plugins/tree/TreePanel.java
+++ b/diylc/diylc-swing/src/org/diylc/swing/plugins/tree/TreePanel.java
@@ -196,18 +196,21 @@ public class TreePanel extends JPanel {
Object obj = categoryNode.getUserObject();
if (obj != null && obj.getClass().equals(Payload.class)) {
Payload payload = (Payload) obj;
- boolean visible = visibleCount > 0;
- if (visible != payload.isVisible()) {
- payload.setVisible(visible);
+ boolean categoryVisible = visibleCount > 0;
+ if (categoryVisible != payload.isVisible()) {
+ payload.setVisible(categoryVisible);
model.nodeStructureChanged(rootNode);
}
- if (visible && text.trim().length() > 0) {
+ if (categoryVisible && text.trim().length() > 0) {
tree.expandPath(new TreePath(categoryNode.getPath()));
}
}
}
-
- getTree().invalidate();
+
+ for (int i = 0; i < model.getChildCount(rootNode); i++) {
+ DefaultMutableTreeNode categoryNode = (DefaultMutableTreeNode) model.getChild(rootNode, i);
+ tree.expandPath(new TreePath(categoryNode.getPath()));
+ }
}
});
}
diff --git a/diylc/diylc-swing/update.xml b/diylc/diylc-swing/update.xml
index a5f4c8d3..8879e5dd 100644
--- a/diylc/diylc-swing/update.xml
+++ b/diylc/diylc-swing/update.xml
@@ -1454,6 +1454,10 @@
2016-12-23 20:00:00.000 CET
+
+ NEW_FEATURE
+ Searchable toolbox tree instead of the old toolbar (can be changed from "Config" menu)
+
NEW_FEATURE
P-90 pickup in both "dog ear" and "soap bar" variations added