1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-04-11 00:02:28 -04:00

weather: fix fallback temporarily

This commit is contained in:
bbedward
2026-02-27 22:37:10 -05:00
parent 7bea6b4a62
commit b9e9da579f
6 changed files with 86 additions and 21 deletions

View File

@@ -512,6 +512,8 @@ Singleton {
}
function getLocationFromService() {
if (!LocationService.valid)
return;
getLocationFromCoords(LocationService.latitude, LocationService.longitude);
}
@@ -829,9 +831,11 @@ Singleton {
target: LocationService
function onLocationChanged(data) {
if (SettingsData.useAutoLocation) {
root.getLocationFromCoords(data.latitude, data.longitude)
}
if (!SettingsData.useAutoLocation)
return;
if (data.latitude === 0 && data.longitude === 0)
return;
root.getLocationFromCoords(data.latitude, data.longitude);
}
}