chore: correct wrong reference to super in commitEdit calls

This commit is contained in:
Zhongheng Liu 2025-12-22 00:21:16 +02:00
commit 6ca38e6613
Signed by: steven
GPG key ID: F69B980899C1C09D

View file

@ -36,11 +36,11 @@ public class IngredientListCell extends OrderedEditableListCell<String> {
String name = nameInput.getText();
if (unit == null) {
String desc = amountInput.getText();
super.commitEdit(desc + " " + name);
commitEdit(desc + " " + name);
return;
}
int amount = Integer.parseInt(amountInput.getText());
super.commitEdit(amount + " " + unit + " of " + name);
commitEdit(amount + " " + unit + " of " + name);
});
this.setText(null);
this.setGraphic(container);