Fix expand button being enabled with no children shown

This commit is contained in:
crschnick 2024-05-27 16:52:15 +00:00
parent d62047d56b
commit 9c565de56b

View file

@ -101,7 +101,7 @@ public class StoreSectionMiniComp extends Comp<CompStructure<VBox>> {
+ section.getWrapper().getName().getValue(); + section.getWrapper().getName().getValue();
}, },
section.getWrapper().getName())) section.getWrapper().getName()))
.disable(Bindings.size(section.getAllChildren()).isEqualTo(0)) .disable(Bindings.size(section.getShownChildren()).isEqualTo(0))
.grow(false, true) .grow(false, true)
.styleClass("expand-button"); .styleClass("expand-button");