mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-10-18 09:14:01 -04:00
weather: stop labeling auto-location coords with the configured city name
fixes #3272
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user