From f263df3ccdc7eab6d3befe8f189715df3cf27b59 Mon Sep 17 00:00:00 2001 From: Soramane <61896496+soramanew@users.noreply.github.com> Date: Wed, 16 Jul 2025 21:44:27 +1000 Subject: internal: create service config --- services/Weather.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'services') 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 ?? ""; -- cgit v1.2.3-freya