Replaced all NWidgets callback by proper signals
This commit is contained in:
parent
1a7a0dbb16
commit
a7d4e0ec1d
27 changed files with 93 additions and 88 deletions
|
|
@ -23,10 +23,10 @@ Singleton {
|
|||
watchChanges: true
|
||||
onFileChanged: reload()
|
||||
onAdapterUpdated: writeAdapter()
|
||||
Component.onCompleted: function () {
|
||||
Component.onCompleted: {
|
||||
reload()
|
||||
}
|
||||
onLoaded: function () {
|
||||
onLoaded: {
|
||||
loadFromCache()
|
||||
}
|
||||
onLoadFailed: function (error) {
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ Singleton {
|
|||
FileView {
|
||||
path: locationFile
|
||||
onAdapterUpdated: writeAdapter()
|
||||
onLoaded: function () {
|
||||
onLoaded: {
|
||||
updateWeather()
|
||||
}
|
||||
onLoadFailed: function (error) {
|
||||
|
|
|
|||
|
|
@ -47,10 +47,10 @@ Singleton {
|
|||
watchChanges: true
|
||||
onFileChanged: reload()
|
||||
onAdapterUpdated: writeAdapter()
|
||||
Component.onCompleted: function () {
|
||||
Component.onCompleted: {
|
||||
reload()
|
||||
}
|
||||
onLoaded: function () {
|
||||
onLoaded: {
|
||||
Qt.callLater(function () {
|
||||
if (adapter.wallpaper.current !== "") {
|
||||
console.log("Settings: Initializing wallpaper to:", adapter.wallpaper.current)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue