From 94ebd6bf4902f3655efbdeb91c695ea698634ae0 Mon Sep 17 00:00:00 2001 From: Rob Pilling Date: Wed, 12 Jul 2023 22:05:25 +0100 Subject: [PATCH] rep: setUI() on init, in case recorder cleared handlers --- apps/rep/app.js | 3 ++- apps/rep/app.ts | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/rep/app.js b/apps/rep/app.js index 8172bc362..692164cc3 100644 --- a/apps/rep/app.js +++ b/apps/rep/app.js @@ -184,7 +184,7 @@ var _a, _b, _c; State.prototype.currentRepIndex = function () { var elapsed = this.getElapsedTotal(); var ent; - for (var i = 0; (ent = reps_1[i]); i++) + for (var i = 0; ent = reps_1[i]; i++) if (elapsed < ent.accDur) return i; return null; @@ -252,6 +252,7 @@ var _a, _b, _c; }; var init = function () { g.clear(); + layout_1.setUI(); drawRep_1(); Bangle.drawWidgets(); }; diff --git a/apps/rep/app.ts b/apps/rep/app.ts index 181ccd921..d34e2bca1 100644 --- a/apps/rep/app.ts +++ b/apps/rep/app.ts @@ -316,6 +316,7 @@ const buzzNewRep = () => { const init = () => { g.clear(); + layout.setUI(); drawRep(); Bangle.drawWidgets();