fix: checkstyle violations
This commit is contained in:
parent
4b28d073b9
commit
d802d8627e
1 changed files with 7 additions and 4 deletions
|
|
@ -42,7 +42,8 @@ public class FoodpalApplicationCtrl implements LocaleAware {
|
|||
private final LocaleManager localeManager;
|
||||
private final IngredientListCtrl ingredientListCtrl;
|
||||
private final RecipeStepListCtrl stepListCtrl;
|
||||
private final SearchBarCtrl searchBarCtrl;
|
||||
|
||||
private SearchBarCtrl searchBarCtrl;
|
||||
|
||||
public VBox detailsScreen;
|
||||
public HBox editableTitleArea;
|
||||
|
|
@ -100,7 +101,6 @@ public class FoodpalApplicationCtrl implements LocaleAware {
|
|||
LocaleManager localeManager,
|
||||
IngredientListCtrl ingredientListCtrl,
|
||||
RecipeStepListCtrl stepListCtrl,
|
||||
SearchBarCtrl searchBarCtrl,
|
||||
ConfigService configService
|
||||
) {
|
||||
this.server = server;
|
||||
|
|
@ -108,13 +108,17 @@ public class FoodpalApplicationCtrl implements LocaleAware {
|
|||
this.localeManager = localeManager;
|
||||
this.ingredientListCtrl = ingredientListCtrl;
|
||||
this.stepListCtrl = stepListCtrl;
|
||||
this.searchBarCtrl = searchBarCtrl;
|
||||
|
||||
this.configService = configService;
|
||||
|
||||
initializeWebSocket();
|
||||
}
|
||||
|
||||
@Inject
|
||||
void setSearchBarCtrl(SearchBarCtrl searchBarCtrl) {
|
||||
this.searchBarCtrl = searchBarCtrl;
|
||||
}
|
||||
|
||||
private void initializeSearchBar() {
|
||||
// Refresh on search bar change
|
||||
this.searchBarCtrl.setOnSearch(recipes -> {
|
||||
|
|
@ -220,7 +224,6 @@ public class FoodpalApplicationCtrl implements LocaleAware {
|
|||
});
|
||||
|
||||
this.initializeSearchBar();
|
||||
|
||||
refresh();
|
||||
updateFavouriteButton(recipeList.getSelectionModel().getSelectedItem());
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue