diff --git a/app/src/main/java/io/xpipe/app/comp/storage/store/StoreEntrySection.java b/app/src/main/java/io/xpipe/app/comp/storage/store/StoreEntrySection.java index df92ca57..c8187924 100644 --- a/app/src/main/java/io/xpipe/app/comp/storage/store/StoreEntrySection.java +++ b/app/src/main/java/io/xpipe/app/comp/storage/store/StoreEntrySection.java @@ -7,6 +7,7 @@ import io.xpipe.extension.fxcomps.augment.GrowAugment; import io.xpipe.extension.fxcomps.impl.HorizontalComp; import io.xpipe.extension.fxcomps.impl.VerticalComp; import io.xpipe.extension.fxcomps.util.BindingsHelper; +import javafx.beans.binding.Bindings; import javafx.collections.FXCollections; import javafx.collections.ObservableList; import javafx.scene.layout.*; @@ -79,10 +80,6 @@ public class StoreEntrySection implements StorageFilter.Filterable { }); List> topEntryList = top ? List.of(root) : List.of(icon, root); - if (children.size() == 0) { - return new HorizontalComp(topEntryList); - } - var all = children; var shown = BindingsHelper.filteredContentBinding( all, @@ -103,7 +100,8 @@ public class StoreEntrySection implements StorageFilter.Filterable { return new VerticalComp(List.of( new HorizontalComp(topEntryList), new HorizontalComp(List.of(spacer, content)) - .apply(struc -> struc.get().setFillHeight(true)))); + .apply(struc -> struc.get().setFillHeight(true)) + .hide(Bindings.size(children).isEqualTo(0)))); } @Override diff --git a/dist/changelogs/0.4.26.md b/dist/changelogs/0.4.26.md new file mode 100644 index 00000000..b7e4f5d3 --- /dev/null +++ b/dist/changelogs/0.4.26.md @@ -0,0 +1,2 @@ +- Improve tool integrations for all platforms +- Fix small display bugs \ No newline at end of file diff --git a/version b/version index f9a09d60..348110c3 100644 --- a/version +++ b/version @@ -1 +1 @@ -0.4.25 \ No newline at end of file +0.4.26 \ No newline at end of file