Small bug fixes [release]

This commit is contained in:
crschnick 2023-02-04 09:53:05 +00:00
parent 640aeba0d0
commit 87cf995e32
4 changed files with 13 additions and 6 deletions

View file

@ -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<Comp<?>> 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

2
dist/changelogs/0.4.26.md vendored Normal file
View file

@ -0,0 +1,2 @@
- Improve tool integrations for all platforms
- Fix small display bugs

View file

@ -36,6 +36,13 @@ public class ShellEnvironmentStore extends JacksonizedValue implements MachineSt
host.checkComplete();
}
@Override
public void validate() throws Exception {
try (var ignored = create().start()) {
}
}
@Override
public ShellProcessControl create() {
var pc = host.create();

View file

@ -1 +1 @@
0.4.25
0.4.26