|
|
|
@ -169,6 +169,7 @@ public class MainWindows {
|
|
|
|
|
sensorTree.getSelectionModel().selectedItemProperty().addListener((list, oldValue, newValue) -> {
|
|
|
|
|
if (oldValue != null && oldValue.getValue() != null) {
|
|
|
|
|
sensorName.textProperty().unbindBidirectional(oldValue.getValue().nameProperty());
|
|
|
|
|
sensorName.setText(null);
|
|
|
|
|
sourcesView.itemsProperty().unbind();
|
|
|
|
|
sourcesView.setItems(FXCollections.emptyObservableList());
|
|
|
|
|
if (oldValue.getValue() instanceof AutoSensor auto) {
|
|
|
|
|