Init: better widget upgrading process + less warnings when starting up without config or cache
This commit is contained in:
parent
b43b065cf2
commit
3271fa1d23
6 changed files with 32 additions and 27 deletions
|
|
@ -25,6 +25,7 @@ Singleton {
|
|||
FileView {
|
||||
id: locationFileView
|
||||
path: locationFile
|
||||
printErrors: false
|
||||
onAdapterUpdated: saveTimer.start()
|
||||
onLoaded: {
|
||||
Logger.log("Location", "Loaded cached data")
|
||||
|
|
|
|||
|
|
@ -30,6 +30,7 @@ Singleton {
|
|||
FileView {
|
||||
id: cacheFileView
|
||||
path: root.cacheFile
|
||||
printErrors: false
|
||||
|
||||
JsonAdapter {
|
||||
id: cacheAdapter
|
||||
|
|
|
|||
|
|
@ -65,6 +65,7 @@ Singleton {
|
|||
id: historyFileView
|
||||
objectName: "notificationHistoryFileView"
|
||||
path: historyFile
|
||||
printErrors: false
|
||||
watchChanges: true
|
||||
onFileChanged: reload()
|
||||
onAdapterUpdated: writeAdapter()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue