runplus: don't show cached value of a stat

... as it might be roughtly correct as of when the user paused (HRM) or
totally stale (time, step count, etc)
pull/3419/head
Rob Pilling 2024-05-16 21:30:34 +01:00
parent 9b252e912d
commit 5eb8f5625d
1 changed files with 3 additions and 1 deletions

View File

@ -144,12 +144,14 @@ function zoom(statID) {
layout.render(layout.bottom);
const value = exs.state.active ? stat.getString() : "____";
g
.setFont(stat.title.length > 5 ? zoomFontSmall : zoomFont)
.setColor(headingCol)
.drawString(stat.title.toUpperCase(), R.x+R.w/2, R.y+R.h/3)
.setColor(g.theme.fg)
.drawString(stat.getString(), R.x+R.w/2, R.y+R.h*2/3);
.drawString(value, R.x+R.w/2, R.y+R.h*2/3);
};
layout.lazy = false; // restored when we go back to "main"