Skip to content

Commit

Permalink
reviewed changes
Browse files Browse the repository at this point in the history
  • Loading branch information
kmags1 committed Dec 5, 2023
1 parent f852894 commit 0ba43e1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion app/src/main/java/cse/gradle/Controller.java
Original file line number Diff line number Diff line change
Expand Up @@ -201,8 +201,9 @@ void setListeners(UserLogin userPane, View appScenes) {
});
}

// TODO: Replace this method with an API call to the HTTP server using Model
void handleRegenerateButton(AppFramePopUp popUp, View appScenes, Recipe recipe, RecipeList rList){
Recipe newRecipe = new RecipeGenerator().reGenerateRecipe(recipe);
Recipe newRecipe = new RecipeGenerator().regenerateRecipe(recipe);
popUp.getNameField().setText(newRecipe.getName());
popUp.getCategoryField().setText(newRecipe.getCategory());
popUp.getIngredientsField().setText(newRecipe.getIngredients());
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/java/cse/gradle/RecipeGenerator.java
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public Recipe generateNewRecipe() {
return returnRecipe;
}

public Recipe reGenerateRecipe(Recipe existingRecipe){
public Recipe regenerateRecipe(Recipe existingRecipe){
String mealtypeString = existingRecipe.getCategory();
String ingredientsString = existingRecipe.getIngredients();
String titleString = "";
Expand Down

0 comments on commit 0ba43e1

Please sign in to comment.