mirror of
https://github.com/xpipe-io/xpipe.git
synced 2026-05-03 03:10:34 +00:00
Various fixes [stage]
This commit is contained in:
@@ -76,11 +76,6 @@ public class AppLayoutComp extends Comp<AppLayoutComp.Structure> {
|
||||
public record Structure(BorderPane pane, StackPane stack, Region sidebar, List<Node> children)
|
||||
implements CompStructure<BorderPane> {
|
||||
|
||||
public void prepareAddition() {
|
||||
stack.getChildren().clear();
|
||||
sidebar.setDisable(true);
|
||||
}
|
||||
|
||||
public void show() {
|
||||
stack.getChildren().add(children.getFirst());
|
||||
for (int i = 1; i < children.size(); i++) {
|
||||
|
||||
@@ -74,7 +74,7 @@ public class StoreCategoryConfigComp extends SimpleComp {
|
||||
super.updateItem(color, empty);
|
||||
if (color == null) {
|
||||
setText(AppI18n.get("none"));
|
||||
setGraphic(DataStoreColor.createDisplayGraphic(color));
|
||||
setGraphic(DataStoreColor.createDisplayGraphic(null));
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -36,7 +36,6 @@ public class OptionsBuilder {
|
||||
private final List<Check> allChecks = new ArrayList<>();
|
||||
private final List<OptionsComp.Entry> entries = new ArrayList<>();
|
||||
private final List<Property<?>> props = new ArrayList<>();
|
||||
private final List<Augment<CompStructure<VBox>>> augments = new ArrayList<>();
|
||||
|
||||
private ObservableValue<String> name;
|
||||
private ObservableValue<String> description;
|
||||
@@ -415,9 +414,6 @@ public class OptionsBuilder {
|
||||
public OptionsComp buildComp() {
|
||||
finishCurrent();
|
||||
var comp = new OptionsComp(entries, focusFirstIncomplete ? allChecks : List.of());
|
||||
for (Augment<CompStructure<VBox>> augment : augments) {
|
||||
comp.apply(augment);
|
||||
}
|
||||
return comp;
|
||||
}
|
||||
|
||||
|
||||
@@ -37,8 +37,7 @@ public class BeaconConfig {
|
||||
if (customPortVar != null) {
|
||||
try {
|
||||
customPort = Integer.parseInt(customPortVar);
|
||||
} catch (NumberFormatException e) {
|
||||
}
|
||||
} catch (NumberFormatException ignored) {}
|
||||
}
|
||||
|
||||
var effectivePortBase = customPort != null ? customPort : 21721;
|
||||
|
||||
Reference in New Issue
Block a user