diff --git a/apps/runplus/ChangeLog b/apps/runplus/ChangeLog index 8c192de4f..c50ee800f 100644 --- a/apps/runplus/ChangeLog +++ b/apps/runplus/ChangeLog @@ -32,4 +32,4 @@ Write to correct settings file, fixing settings not working. 0.29: Optimise UI: only redraw if we showed a recorder menu and correctly track screen state 0.30: Change the "time" stat to show active time (duration) rather than - elapsed time (fix #3802) + elapsed time (fix #3802), and sync with recorder on load diff --git a/apps/runplus/app.js b/apps/runplus/app.js index aa2e5f0d3..a35d0cc5e 100644 --- a/apps/runplus/app.js +++ b/apps/runplus/app.js @@ -51,6 +51,11 @@ let statIDs = [settings.B1,settings.B2,settings.B3,settings.B4,settings.B5,setti let exs = ExStats.getStats(statIDs, settings); // --------------------------- +// handle the case where we were stopped outside of the app +if(exs.state.active && settings.record && require("recorder") && !require("recorder").isRecording()){ + exs.stop(); +} + function setStatus(running) { layout.button.label = running ? "STOP" : "START"; layout.status.label = running ? "RUN" : "STOP";