From e497e03ca0670689d788fcd0f2246be1c44a0555 Mon Sep 17 00:00:00 2001 From: Siedlerchr Date: Mon, 3 Feb 2020 08:38:48 +0100 Subject: [PATCH] bind bidirectional --- .../gui/customentrytypes/CustomizeEntryTypeDialogView.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/jabref/gui/customentrytypes/CustomizeEntryTypeDialogView.java b/src/main/java/org/jabref/gui/customentrytypes/CustomizeEntryTypeDialogView.java index 0cd7fc03b0f..fdc178041e6 100644 --- a/src/main/java/org/jabref/gui/customentrytypes/CustomizeEntryTypeDialogView.java +++ b/src/main/java/org/jabref/gui/customentrytypes/CustomizeEntryTypeDialogView.java @@ -50,7 +50,7 @@ public CustomizeEntryTypeDialogView(BibDatabaseContext bibDatabaseContext) { ViewLoader.view(this) .load() .setAsDialogPane(this); - + setResultConverter(button -> { if (button.getButtonData() == ButtonData.OK_DONE) { viewModel.apply(); @@ -101,7 +101,7 @@ private void setupTable() { .withOnMouseClickedEvent(item -> evt -> viewModel.removeField(fields.getFocusModel().getFocusedItem())) .install(fieldTypeActionColumn); - viewModel.newFieldToAddProperty().bind(addNewField.valueProperty()); + viewModel.newFieldToAddProperty().bindBidirectional(addNewField.valueProperty()); fields.itemsProperty().bindBidirectional(viewModel.fieldsforTypesProperty()); }