Even more ArchUpdater fixes
ArchUpdaterService:properly check for errors
This commit is contained in:
parent
4520ed3cbf
commit
2f8472f720
2 changed files with 20 additions and 17 deletions
|
|
@ -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()
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue