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 dde324d4..c5f2e93c 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 @@ -274,6 +274,8 @@ public class TreePanel extends JPanel { @Override public void mouseClicked(MouseEvent e) { + if (e.getClickCount() != 1) + return; TreePath path = tree.getClosestPathForLocation(e.getX(), e.getY()); DefaultMutableTreeNode node = (DefaultMutableTreeNode) path.getLastPathComponent(); if (node != null && node.getUserObject() != null) { diff --git a/diylc/diylc-swing/update.xml b/diylc/diylc-swing/update.xml index b86b0448..55f87dd2 100644 --- a/diylc/diylc-swing/update.xml +++ b/diylc/diylc-swing/update.xml @@ -1586,6 +1586,10 @@ IMPROVEMENT Improved resistor rendering to look more realistic + + BUG_FIX + Component type gets selected while expanding folders in component tree + https://github.com/bancika/diy-layout-creator/releases