Small fixes

This commit is contained in:
crschnick
2025-03-06 19:54:35 +00:00
parent 20e1c3f019
commit 153db64ae0
2 changed files with 4 additions and 1 deletions
@@ -5,6 +5,7 @@ import io.xpipe.app.comp.CompStructure;
import io.xpipe.app.comp.SimpleCompStructure;
import io.xpipe.app.util.PlatformThread;
import javafx.beans.binding.Bindings;
import javafx.collections.FXCollections;
import javafx.collections.ListChangeListener;
import javafx.collections.ObservableList;
@@ -34,6 +35,7 @@ public class ToolbarComp extends Comp<CompStructure<ToolBar>> {
for (var entry : entries) {
b.getItems().add(entry.createRegion());
}
b.visibleProperty().bind(Bindings.isNotEmpty(entries));
return new SimpleCompStructure<>(b);
}
}
@@ -62,7 +62,8 @@ public class ShellStoreFormat {
.format();
}
var joined = Stream.concat(Stream.of(s.getTtyState() != null && s.getTtyState() != ShellTtyState.NONE ? "TTY" : null), Arrays.stream(info)).toArray(String[]::new);
var joined = Stream.concat(Stream.of(s.getTtyState() != null && s.getTtyState() != ShellTtyState.NONE ? "TTY" : null),
info != null ? Arrays.stream(info) : Stream.of()).toArray(String[]::new);
return new ShellStoreFormat(
LicenseProvider.get().checkOsName(s.getOsName()),
formattedOsName(s.getOsName()),