Wallpaper: attempt to fix wallpaper bindings on Qt 6.8

This commit is contained in:
LemmyCook 2025-08-31 17:55:08 -04:00
parent 330eac08cb
commit c7ee627110

View file

@ -93,6 +93,13 @@ Singleton {
return Settings.data.wallpaper.directory return Settings.data.wallpaper.directory
} }
// -------------------------------------------------------------------
function forceRefreshConfig() {
var backup = Settings.data.wallpaper.monitors.slice(0)
Settings.data.wallpaper.monitors = []
Settings.data.wallpaper.monitors = backup
}
// ------------------------------------------------------------------- // -------------------------------------------------------------------
// Set specific monitor directory // Set specific monitor directory
function setMonitorDirectory(screenName, directory) { function setMonitorDirectory(screenName, directory) {
@ -106,6 +113,7 @@ Singleton {
"wallpaper": "" "wallpaper": ""
}) })
} }
forceRefreshConfig()
} }
// ------------------------------------------------------------------- // -------------------------------------------------------------------
@ -128,6 +136,7 @@ Singleton {
_setWallpaper(Quickshell.screens[i].name, path) _setWallpaper(Quickshell.screens[i].name, path)
} }
} }
forceRefreshConfig()
} }
// ------------------------------------------------------------------- // -------------------------------------------------------------------