diff --git a/client/src/main/java/client/scenes/FoodpalApplicationCtrl.java b/client/src/main/java/client/scenes/FoodpalApplicationCtrl.java index cf5dc49..a182619 100644 --- a/client/src/main/java/client/scenes/FoodpalApplicationCtrl.java +++ b/client/src/main/java/client/scenes/FoodpalApplicationCtrl.java @@ -203,8 +203,8 @@ public class FoodpalApplicationCtrl implements LocaleAware { // Select first recipe in the list by default if (!recipes.isEmpty()) { recipeList.getSelectionModel().selectFirst(); - detailsScreen.visibleProperty().set(true); } + detailsScreen.visibleProperty().set(!recipes.isEmpty()); } private void printError(String msg) { Alert alert = new Alert(Alert.AlertType.ERROR);