mirror of
https://github.com/xpipe-io/xpipe.git
synced 2026-09-25 09:55:52 +00:00
Small fixes
This commit is contained in:
@@ -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()),
|
||||
|
||||
Reference in New Issue
Block a user