Replaced all NWidgets callback by proper signals

This commit is contained in:
quadbyte 2025-08-12 13:22:15 -04:00
parent 1a7a0dbb16
commit a7d4e0ec1d
27 changed files with 93 additions and 88 deletions

View file

@ -23,10 +23,10 @@ Singleton {
watchChanges: true
onFileChanged: reload()
onAdapterUpdated: writeAdapter()
Component.onCompleted: function () {
Component.onCompleted: {
reload()
}
onLoaded: function () {
onLoaded: {
loadFromCache()
}
onLoadFailed: function (error) {

View file

@ -16,7 +16,7 @@ Singleton {
FileView {
path: locationFile
onAdapterUpdated: writeAdapter()
onLoaded: function () {
onLoaded: {
updateWeather()
}
onLoadFailed: function (error) {

View file

@ -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)