mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
location: IPC call now triggers geocoding and weather refresh. Fix #2065
This commit is contained in:
@@ -10,6 +10,7 @@ import qs.Commons
|
||||
import qs.Modules.Panels.Settings
|
||||
import qs.Services.Compositor
|
||||
import qs.Services.Hardware
|
||||
import qs.Services.Location
|
||||
import qs.Services.Media
|
||||
import qs.Services.Networking
|
||||
import qs.Services.Noctalia
|
||||
@@ -835,6 +836,7 @@ Singleton {
|
||||
}
|
||||
function set(name: string) {
|
||||
Settings.data.location.name = name;
|
||||
LocationService.update();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -142,6 +142,11 @@ Singleton {
|
||||
|
||||
isFetchingWeather = false;
|
||||
Logger.i("Location", "Coordinates ready");
|
||||
|
||||
if (locationChanged) {
|
||||
adapter.weatherLastFetch = 0;
|
||||
updateWeatherData();
|
||||
}
|
||||
}, errorCallback);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user