mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 10:48:00 +00:00
Changed options not showing node counts on disabled nodes.
This commit is contained in:
@@ -491,7 +491,7 @@ public class FCheckBoxTree extends JTree {
|
||||
String chkBoxTxt = nodeInfo.label;
|
||||
int disabledNodes = cn.numberOfChildren - cn.enabledChildrenCount;
|
||||
int totalActiveNodes = cn.numberOfChildren - disabledNodes;
|
||||
if (this.displayNodesCount && !node.isLeaf() && cn.numberOfChildren > 0) {
|
||||
if (this.displayNodesCount && !node.isLeaf() && cn.numberOfChildren > 0 && totalActiveNodes > 0) {
|
||||
chkBoxTxt += String.format(" (%d/%d)", cn.selectedChildrenCount, totalActiveNodes);;
|
||||
}
|
||||
this.checkBox.setText(chkBoxTxt);
|
||||
|
||||
Reference in New Issue
Block a user