recorder:fix exit graph/plot goes back two levels

pull/3297/head
thyttan 2024-03-26 02:14:25 +01:00
parent 1b1d2c088f
commit 790f60b432
3 changed files with 6 additions and 4 deletions

View File

@ -49,3 +49,5 @@
0.39: Minor code improvements
0.40: Fix reference error from missing `settings` object in widget on 1 sec recordings with gps.
Fix HRM source never being set in output data
0.41: Fix exit from plots and graphs would easily react twice, going back two
levels instead of one.

View File

@ -311,7 +311,7 @@ function plotTrack(info) { "ram"
g.drawString(/*LANG*/"Back",g.getWidth() - 10, isBTN3 ? (g.getHeight() - 40) : (g.getHeight()/2));
setWatch(function() {
viewTrack(info.fn, info);
}, isBTN3?BTN3:BTN1);
}, isBTN3?BTN3:BTN1, {edge:"falling"});
Bangle.drawWidgets();
g.flip();
}
@ -432,9 +432,9 @@ function plotGraph(info, style) { "ram"
g.drawString(/*LANG*/"Back",g.getWidth() - 10, isBTN3 ? (g.getHeight() - 40) : (g.getHeight()/2));
setWatch(function() {
viewTrack(info.filename, info);
}, isBTN3?BTN3:BTN1);
}, isBTN3?BTN3:BTN1, {edge:"falling"});
g.flip();
}
showMainMenu();
showMainMenu();

View File

@ -2,7 +2,7 @@
"id": "recorder",
"name": "Recorder",
"shortName": "Recorder",
"version": "0.40",
"version": "0.41",
"description": "Record GPS position, heart rate and more in the background, then download to your PC.",
"icon": "app.png",
"tags": "tool,outdoors,gps,widget,clkinfo",