mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-10-17 00:34:01 -04:00
fix(weather): skip reverse geocoding when a location name is configured
Fixes #2430
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user