Wallpaper: attempt to fix wallpaper bindings on Qt 6.8
This commit is contained in:
parent
330eac08cb
commit
c7ee627110
1 changed files with 9 additions and 0 deletions
|
|
@ -93,6 +93,13 @@ Singleton {
|
|||
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
|
||||
function setMonitorDirectory(screenName, directory) {
|
||||
|
|
@ -106,6 +113,7 @@ Singleton {
|
|||
"wallpaper": ""
|
||||
})
|
||||
}
|
||||
forceRefreshConfig()
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------
|
||||
|
|
@ -128,6 +136,7 @@ Singleton {
|
|||
_setWallpaper(Quickshell.screens[i].name, path)
|
||||
}
|
||||
}
|
||||
forceRefreshConfig()
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue