From 5eb8f5625d1deb931fad9e18cff282723e201aec Mon Sep 17 00:00:00 2001 From: Rob Pilling Date: Thu, 16 May 2024 21:30:34 +0100 Subject: [PATCH] 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) --- apps/runplus/app.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/runplus/app.js b/apps/runplus/app.js index 64cadcd5f..3054ffa0c 100644 --- a/apps/runplus/app.js +++ b/apps/runplus/app.js @@ -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"