mirror of https://github.com/espruino/BangleApps
Merge pull request #1628 from GrandVizierOlaf/master
Fix run bug where recorder did not stop.pull/1623/head^2
commit
e482707e89
|
@ -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
|
|
@ -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) {
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue