Even more ArchUpdater fixes

ArchUpdaterService:properly check for errors
This commit is contained in:
Ly-sec 2025-08-31 16:56:52 +02:00
parent 4520ed3cbf
commit 2f8472f720
2 changed files with 20 additions and 17 deletions

View file

@ -51,8 +51,6 @@ Singleton {
property string name: ""
property int weatherLastFetch: 0
property var weather: null
}
}
@ -120,8 +118,8 @@ Singleton {
return
}
if ((adapter.weatherLastFetch === "") || (adapter.weather === null) || (adapter.latitude === "") || (adapter.longitude === "")
|| (adapter.name !== Settings.data.location.name)
if ((adapter.weatherLastFetch === "") || (adapter.weather === null) || (adapter.latitude === "")
|| (adapter.longitude === "") || (adapter.name !== Settings.data.location.name)
|| (Time.timestamp >= adapter.weatherLastFetch + weatherUpdateFrequency)) {
getFreshWeather()
}