diff options
Diffstat (limited to 'services/Weather.qml')
| -rw-r--r-- | services/Weather.qml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/services/Weather.qml b/services/Weather.qml index 493a2a0..38750ae 100644 --- a/services/Weather.qml +++ b/services/Weather.qml @@ -15,8 +15,8 @@ Singleton { property string tempF: "0°F" function reload(): void { - if (Config.dashboard.weatherLocation) - loc = Config.dashboard.weatherLocation; + if (Config.services.weatherLocation) + loc = Config.services.weatherLocation; else if (!loc || timer.elapsed() > 900) Requests.get("https://ipinfo.io/json", text => { loc = JSON.parse(text).loc ?? ""; |