From d2f2d712a22b4631d48554295411c83c64ce579e Mon Sep 17 00:00:00 2001 From: storm64 Date: Thu, 7 Apr 2022 13:01:47 +0200 Subject: [PATCH] mylocation: Fix selecting Frankfurt not saved Corrected check for selected location = "???". --- apps/mylocation/ChangeLog | 1 + apps/mylocation/metadata.json | 2 +- apps/mylocation/mylocation.app.js | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/mylocation/ChangeLog b/apps/mylocation/ChangeLog index b9eba67f4..ab8af7620 100644 --- a/apps/mylocation/ChangeLog +++ b/apps/mylocation/ChangeLog @@ -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 diff --git a/apps/mylocation/metadata.json b/apps/mylocation/metadata.json index a7fd8356c..9182ba160 100644 --- a/apps/mylocation/metadata.json +++ b/apps/mylocation/metadata.json @@ -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", diff --git a/apps/mylocation/mylocation.app.js b/apps/mylocation/mylocation.app.js index 27ab17ea5..b9451e0fb 100644 --- a/apps/mylocation/mylocation.app.js +++ b/apps/mylocation/mylocation.app.js @@ -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];