1
0
Fork 0

Merge pull request #3594 from thyttan/recorder

recorder: list tracks in reverse chronological order
master
Gordon Williams 2024-09-30 10:02:14 +01:00 committed by GitHub
commit a6436483da
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 3 additions and 2 deletions

View File

@ -53,3 +53,4 @@
levels instead of one.
0.42: Minor code improvements
0.43: Fix interaction on clocks without widgets
0.44: List tracks in reverse chronological order.

View File

@ -95,7 +95,7 @@ function viewTracks() {
'': { 'title': /*LANG*/'Tracks' }
};
var found = false;
require("Storage").list(/^recorder\.log.*\.csv$/,{sf:true}).forEach(filename=>{
require("Storage").list(/^recorder\.log.*\.csv$/,{sf:true}).reverse().forEach(filename=>{
found = true;
menu[/*LANG*/getTrackNumber(filename)] = ()=>viewTrack(filename,false);
});

View File

@ -2,7 +2,7 @@
"id": "recorder",
"name": "Recorder",
"shortName": "Recorder",
"version": "0.43",
"version": "0.44",
"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",