fix: autoselect cloned recipe after cloning operation

This commit is contained in:
Zhongheng Liu 2025-12-04 23:11:16 +01:00
commit 10868134b0
Signed by: steven
GPG key ID: F69B980899C1C09D

View file

@ -318,9 +318,9 @@ public class FoodpalApplicationCtrl implements LocaleAware {
return; return;
} }
server.cloneRecipe(selected.getId()); Recipe cloned = server.cloneRecipe(selected.getId());
refresh(); refresh();
recipeList.getSelectionModel().select(cloned);
} }
} }