fix: servings minimum as One
This commit is contained in:
parent
d83494c2a1
commit
4e901f7847
1 changed files with 1 additions and 1 deletions
|
|
@ -408,7 +408,7 @@ public class RecipeDetailCtrl implements LocaleAware {
|
||||||
// triggers a UI update each time the spinner changes to a different value.
|
// triggers a UI update each time the spinner changes to a different value.
|
||||||
setCurrentlyViewedRecipe(recipe);
|
setCurrentlyViewedRecipe(recipe);
|
||||||
});
|
});
|
||||||
servingsSpinner.setValueFactory(new SpinnerValueFactory.IntegerSpinnerValueFactory(0, Integer.MAX_VALUE, 1));
|
servingsSpinner.setValueFactory(new SpinnerValueFactory.IntegerSpinnerValueFactory(1, Integer.MAX_VALUE, 1));
|
||||||
servingsSpinner.setEditable(true);
|
servingsSpinner.setEditable(true);
|
||||||
servingsSpinner.valueProperty().addListener((observable, oldValue, newValue) -> {
|
servingsSpinner.valueProperty().addListener((observable, oldValue, newValue) -> {
|
||||||
if (newValue == null) {
|
if (newValue == null) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue