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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user