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 () { State.prototype.currentRepIndex = function () {
var elapsed = this.getElapsedTotal(); var elapsed = this.getElapsedTotal();
var ent; var ent;
for (var i = 0; (ent = reps_1[i]); i++) for (var i = 0; ent = reps_1[i]; i++)
if (elapsed < ent.accDur) if (elapsed < ent.accDur)
return i; return i;
return null; return null;
@ -252,6 +252,7 @@ var _a, _b, _c;
}; };
var init = function () { var init = function () {
g.clear(); g.clear();
layout_1.setUI();
drawRep_1(); drawRep_1();
Bangle.drawWidgets(); Bangle.drawWidgets();
}; };

View File

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