fix(client/main): fixed FIXME(1) edit box rendering

This commit is contained in:
Zhongheng Liu 2026-01-06 21:36:40 +01:00
commit 0cc767d577
Signed by: steven
GPG key ID: F69B980899C1C09D

View file

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