diff --git a/client/src/main/java/client/scenes/FoodpalApplicationCtrl.java b/client/src/main/java/client/scenes/FoodpalApplicationCtrl.java index 756c349..4877fc1 100644 --- a/client/src/main/java/client/scenes/FoodpalApplicationCtrl.java +++ b/client/src/main/java/client/scenes/FoodpalApplicationCtrl.java @@ -294,10 +294,8 @@ public class FoodpalApplicationCtrl implements LocaleAware { // Map of pending item updated, indexed by recipe id. dataService.add(newRecipe.getId(), recipe -> { this.recipeList.getSelectionModel().select(recipe); - // Select newly created recipe - // FIXME(1) Edit box isn't auto created anymore for some weird reason openSelectedRecipe(); - this.recipeDetailController.editRecipeTitle(); + Platform.runLater(() -> this.recipeDetailController.editRecipeTitle()); }); recipeList.refresh(); } catch (IOException | InterruptedException e) {