Merge pull request #3177 from nxdefiant/master

openstmap: move exit to bottom of menu again
master
Gordon Williams 2024-02-02 09:33:27 +00:00 committed by GitHub
commit bc48d50e3d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 3 additions and 3 deletions

View File

@ -33,3 +33,4 @@
0.26: Ensure that when redrawing, we always cancel any in-progress track draw 0.26: Ensure that when redrawing, we always cancel any in-progress track draw
0.27: Display message if no map is installed 0.27: Display message if no map is installed
0.28: Fix rounding errors 0.28: Fix rounding errors
0.29: move exit to bottom of menu

View File

@ -172,7 +172,6 @@ function showMenu() {
var menu = { var menu = {
"":{title:/*LANG*/"Map"}, "":{title:/*LANG*/"Map"},
"< Back": ()=> showMap(), "< Back": ()=> showMap(),
/*LANG*/"Exit": () => load(),
}; };
// If we have a GPS fix, add a menu item to center it // If we have a GPS fix, add a menu item to center it
if (fix.fix) menu[/*LANG*/"Center GPS"]=() =>{ if (fix.fix) menu[/*LANG*/"Center GPS"]=() =>{
@ -180,7 +179,6 @@ function showMenu() {
m.lon = fix.lon; m.lon = fix.lon;
showMap(); showMap();
}; };
menu = Object.assign(menu, { menu = Object.assign(menu, {
/*LANG*/"Zoom In": () =>{ /*LANG*/"Zoom In": () =>{
m.scale /= 2; m.scale /= 2;
@ -234,6 +232,7 @@ function showMenu() {
} }
}; };
} }
menu[/*LANG*/"Exit"] = () => load();
E.showMenu(menu); E.showMenu(menu);
} }

View File

@ -2,7 +2,7 @@
"id": "openstmap", "id": "openstmap",
"name": "OpenStreetMap", "name": "OpenStreetMap",
"shortName": "OpenStMap", "shortName": "OpenStMap",
"version": "0.28", "version": "0.29",
"description": "Loads map tiles from OpenStreetMap onto your Bangle.js and displays a map of where you are. Once installed this also adds map functionality to `GPS Recorder` and `Recorder` apps", "description": "Loads map tiles from OpenStreetMap onto your Bangle.js and displays a map of where you are. Once installed this also adds map functionality to `GPS Recorder` and `Recorder` apps",
"readme": "README.md", "readme": "README.md",
"icon": "app.png", "icon": "app.png",