weather: stop labeling auto-location coords with the configured city name

fixes #3272
This commit is contained in:
bbedward
2026-09-03 09:11:10 -04:00
parent 053337d9b8
commit f9a9e9baf8
+1 -8
View File
@@ -559,13 +559,6 @@ Singleton {
}
function getLocationFromCoords(lat, lon) {
const configuredName = SettingsData.weatherLocation;
if (configuredName) {
setLocation(lat, lon, configuredName, "");
fetchWeather(lat, lon);
return;
}
// Use coordinates immediately for weather; resolve city name in parallel with fallbacks
setLocation(lat, lon, I18n.tr("Local Weather"), "");
fetchWeather(lat, lon);
@@ -855,7 +848,7 @@ Singleton {
throw new Error("Missing or invalid location data");
}
setLocation(lat, lon, city, data.countryName || "");
setLocation(lat, lon, city, data.country || "");
fetchWeather(lat, lon);
} catch (e) {
root.handleWeatherFailure();