瀏覽代碼

Reset progress on statechange events. Fixes #329.

n1474335 7 年之前
父節點
當前提交
481a4266b0
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      src/web/App.mjs

+ 2 - 1
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