Merge pull request #1628 from GrandVizierOlaf/master

Fix run bug where recorder did not stop.
pull/1623/head^2
Gordon Williams 2022-03-28 10:46:46 +01:00 committed by GitHub
commit e482707e89
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 4 deletions

View File

@ -9,4 +9,5 @@
0.08: Added support for notifications from exstats. Support all stats from exstats
0.09: Fix broken start/stop if recording not enabled (fix #1561)
0.10: Don't allow the same setting to be chosen for 2 boxes (fix #1578)
0.11: Notifications fixes
0.11: Notifications fixes
0.12: Fix for recorder not stopping at end of run. Bug introduced in 0.11

View File

@ -59,7 +59,7 @@ function onStartStop() {
layout.render();
})
);
} else if (!settings.record && WIDGETS["recorder"]) {
} else {
prepPromises.push(
WIDGETS["recorder"].setRecording(false)
);
@ -68,7 +68,7 @@ function onStartStop() {
if (!prepPromises.length) // fix for Promise.all bug in 2v12
prepPromises.push(Promise.resolve());
Promise.all(prepPromises)
.then(() => {
if (running) {

View File

@ -1,6 +1,6 @@
{ "id": "run",
"name": "Run",
"version":"0.11",
"version":"0.12",
"description": "Displays distance, time, steps, cadence, pace and more for runners.",
"icon": "app.png",
"tags": "run,running,fitness,outdoors,gps",