mirror of
https://github.com/zoriya/noctalia-shell.git
synced 2026-06-01 10:05:30 +00:00
Wallpaper: attempt to fix wallpaper bindings on Qt 6.8
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user