Skip to content
This repository has been archived by the owner on Nov 2, 2021. It is now read-only.

Commit

Permalink
Merge dev into master for BooleanField Hotfix 2.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
serivesmejia authored Dec 18, 2020
2 parents b4570f5 + 4b90422 commit 4e38538
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@ public void setFieldValue(int index, Object value) {
fields[index].setText(value.toString());
}

public void setComboBoxSelection(int index, Object selection) {
comboBoxes[index].setSelectedItem(selection.toString());
}

public void setOnlyNumbers(boolean isOnlyNumbers) {
this.isOnlyNumbers = isOnlyNumbers;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,11 @@ public void init() {
public void update() {
//update all fields
for (TunableField field : fields) {
field.update();
try {
field.update();
} catch(Exception ex) {
Log.error("Error while updating field " + field.getFieldName(), ex);
}
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public void update() {

@Override
public void updateGuiFieldValues() {
fieldPanel.setFieldValue(0, value);
fieldPanel.setComboBoxSelection(0, value);
}

@Override
Expand Down

0 comments on commit 4e38538

Please sign in to comment.