This commit is contained in:
Brunon Blok 2024-05-03 11:00:32 +01:00 committed by GitHub
commit 179e0c881e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8 additions and 1 deletions

View File

@ -46,7 +46,7 @@ class Recipe {
module: OperationConfig[c.op].module,
ingValues: c.args,
breakpoint: c.breakpoint,
disabled: c.disabled || c.op === "Comment",
disabled: c.disabled,
});
});
}

View File

@ -141,6 +141,13 @@ class App {
// Remove all current indicators
this.manager.recipe.updateBreakpointIndicator(false);
if (this.getRecipeConfig()[this.progress] && (this.getRecipeConfig()[this.progress].disabled || this.getRecipeConfig()[this.progress].op === "Comment")) {
// Skip disabled operations and comments
// This makes stepping through the recipe work correctly
this.progress++;
return this.bake(step);
}
this.manager.worker.bake(
this.getRecipeConfig(), // The configuration of the recipe
this.options, // Options set by the user