From 0cc767d577155874aa53cade07aefb4ff55b94ee Mon Sep 17 00:00:00 2001 From: Steven Liu Date: Tue, 6 Jan 2026 21:36:40 +0100 Subject: [PATCH] fix(client/main): fixed FIXME(1) edit box rendering --- .../src/main/java/client/scenes/FoodpalApplicationCtrl.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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) {