[#181] fix selected / checkmark classes on operation list, based on the current recipe list. Update TODO

This commit is contained in:
Robin Scholtes 2023-04-26 23:08:44 +12:00
parent ccc5095763
commit 5e9aa5cd09
5 changed files with 82 additions and 13 deletions

View file

@ -236,7 +236,6 @@ class OperationsWaiter {
*/
operationDblclick(e) {
const li = e.target;
e.target.classList.add("selected");
this.manager.recipe.addOperation(li.getAttribute("data-name"));
}
@ -340,6 +339,7 @@ class OperationsWaiter {
this.app.saveFavourites(favouritesList);
this.app.loadFavourites();
this.app.populateOperationsList();
this.manager.recipe.updateSelectedOperations();
this.manager.recipe.initialiseOperationDragNDrop();
}