Skip to content

Commit aa0bf64

Browse files
committed
fix step for disabled operations and comments
1 parent 1bc8872 commit aa0bf64

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

src/core/Recipe.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class Recipe {
4646
module: OperationConfig[c.op].module,
4747
ingValues: c.args,
4848
breakpoint: c.breakpoint,
49-
disabled: c.disabled || c.op === "Comment",
49+
disabled: c.disabled,
5050
});
5151
});
5252
}

src/web/App.mjs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,13 @@ class App {
140140
// Remove all current indicators
141141
this.manager.recipe.updateBreakpointIndicator(false);
142142

143+
if (this.getRecipeConfig()[this.progress] && (this.getRecipeConfig()[this.progress].disabled || this.getRecipeConfig()[this.progress].op === "Comment")) {
144+
// Skip disabled operations and comments
145+
// This makes stepping through the recipe work correctly
146+
this.progress++;
147+
return this.bake(step);
148+
}
149+
143150
this.manager.worker.bake(
144151
this.getRecipeConfig(), // The configuration of the recipe
145152
this.options, // Options set by the user

0 commit comments

Comments
 (0)