From 481a4266b0d2e1b83fe83ca9938be5411c862e85 Mon Sep 17 00:00:00 2001 From: n1474335 Date: Sun, 19 Aug 2018 23:07:53 +0100 Subject: [PATCH] Reset progress on statechange events. Fixes #329. --- src/web/App.mjs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/web/App.mjs b/src/web/App.mjs index a291aa8b..bb9cffb2 100755 --- a/src/web/App.mjs +++ b/src/web/App.mjs @@ -115,7 +115,7 @@ class App { * @param {boolean} [step] - Set to true if we should only execute one operation instead of the * whole recipe. */ - bake(step) { + bake(step=false) { if (this.baking) return; // Reset attemptHighlight flag @@ -634,6 +634,7 @@ class App { * @param {event} e */ stateChange(e) { + this.progress = 0; this.autoBake(); // Set title