summaryrefslogtreecommitdiff
path: root/services/Weather.qml
diff options
context:
space:
mode:
authorSoramane <61896496+soramanew@users.noreply.github.com>2025-07-16 21:44:27 +1000
committerSoramane <61896496+soramanew@users.noreply.github.com>2025-07-16 21:44:27 +1000
commitf263df3ccdc7eab6d3befe8f189715df3cf27b59 (patch)
tree3d6c4b272937fcbda00e0848939b13c630ce20d0 /services/Weather.qml
parentnix: add qt log rules to devshell (diff)
downloadcaelestia-shell-f263df3ccdc7eab6d3befe8f189715df3cf27b59.tar.gz
caelestia-shell-f263df3ccdc7eab6d3befe8f189715df3cf27b59.tar.bz2
caelestia-shell-f263df3ccdc7eab6d3befe8f189715df3cf27b59.zip
internal: create service config
Diffstat (limited to 'services/Weather.qml')
-rw-r--r--services/Weather.qml4
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 ?? "";