Merge pull request #1668 from storm64/mylocation

mylocation: Fix selecting Frankfurt not saved
master
Gordon Williams 2022-04-07 16:40:25 +01:00 committed by GitHub
commit d20a53a9ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 2 deletions

View File

@ -1,3 +1,4 @@
0.01: First release
0.02: Enhanced icon, make it bolder
0.03: Fixed issue with defaulting back to London
0.04: Fixed issue selecting Frankfurt not saved

View File

@ -4,7 +4,7 @@
"icon": "mylocation.png",
"type": "app",
"screenshots": [{"url":"screenshot_1.png"}],
"version":"0.03",
"version":"0.04",
"description": "Sets and stores the lat and long of your preferred City or it can be set from the GPS. mylocation.json can be used by other apps that need your main location lat and lon. See README",
"readme": "README.md",
"tags": "tool,utility",

View File

@ -61,7 +61,7 @@ function showMainMenu() {
min: 0, max: locations.length - 1,
format: v => locations[v],
onchange: v => {
if (v != 6) {
if (locations[v] !== "???") {
s.location = locations[v];
s.lat = lats[v];
s.lon = lons[v];