Fixes for sh connections [release]

This commit is contained in:
crschnick
2023-03-11 10:01:08 +00:00
parent a752b0c79a
commit eecafd3cf9
4 changed files with 13 additions and 5 deletions

View File

@@ -35,10 +35,10 @@ public class FileStoreChoiceComp extends SimpleComp {
var fileProperty = new SimpleStringProperty(
selected.getValue() != null ? selected.getValue().getPath() : null);
fileProperty.addListener((observable, oldValue, newValue) -> {
setSelected(selected.getValue().getFileSystem(), newValue);
setSelected(selected.getValue() != null ? selected.getValue().getFileSystem() : null, newValue);
});
selected.addListener((observable, oldValue, newValue) -> {
fileProperty.setValue(newValue.getPath());
fileProperty.setValue(newValue != null ? newValue.getPath() : null);
});
var fileSystemChoiceComp = new FileSystemStoreChoiceComp(selected).grow(false, true).styleClass(Styles.LEFT_PILL);