Skip to content

Commit b7e9185

Browse files
committed
Allow add PV item even if setpoint is not specified
1 parent 21efc68 commit b7e9185

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

app/save-and-restore/app/src/main/java/org/phoebus/applications/saveandrestore/ui/configuration/ConfigurationController.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,10 @@ public void commitEdit(Double value) {
380380
userIdentity.isNull().get(),
381381
dirty, configurationDescriptionProperty, configurationNameProperty, userIdentity));
382382

383-
addPvButton.disableProperty().bind(pvNameField.textProperty().isEmpty());
383+
addPvButton.disableProperty().bind(Bindings.createBooleanBinding(() ->
384+
pvNameField.textProperty().isEmpty().get() &&
385+
readbackPvNameField.textProperty().isEmpty().get(),
386+
pvNameField.textProperty(), readbackPvNameField.textProperty()));
384387

385388
readOnlyCheckBox.selectedProperty().bindBidirectional(readOnlyProperty);
386389

0 commit comments

Comments
 (0)