rep: setUI() on init, in case recorder cleared handlers

master
Rob Pilling 2023-07-12 22:05:25 +01:00
parent 784c7b203a
commit 94ebd6bf49
2 changed files with 3 additions and 1 deletions

View File

@ -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();
};

View File

@ -316,6 +316,7 @@ const buzzNewRep = () => {
const init = () => {
g.clear();
layout.setUI();
drawRep();
Bangle.drawWidgets();