fix(weather): skip reverse geocoding when a location name is configured

Fixes #2430
This commit is contained in:
purian23
2026-08-27 21:26:58 -04:00
parent 030974ce75
commit e620677f97
+7
View File
@@ -557,6 +557,13 @@ 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);