Wallpaper: fix double wallpaper init.

This commit is contained in:
ItsLemmy
2025-09-30 20:24:23 -04:00
parent c1abb3a7dc
commit 056217bf43
2 changed files with 2 additions and 5 deletions
-1
View File
@@ -58,7 +58,6 @@ Variants {
target: WallpaperService
function onWallpaperChanged(screenName, path) {
if (screenName === modelData.name) {
// Update wallpaper display
// Set wallpaper immediately on startup
futureWallpaper = path
+2 -4
View File
@@ -79,14 +79,12 @@ Singleton {
translateModels()
// Rebuild cache from persisted settings
var monitors = Settings.data.wallpaper.monitors || []
// Rebuild cache from settings
currentWallpapers = ({})
var monitors = Settings.data.wallpaper.monitors || []
for (var i = 0; i < monitors.length; i++) {
if (monitors[i].name && monitors[i].wallpaper) {
currentWallpapers[monitors[i].name] = monitors[i].wallpaper
// Notify listeners so Background updates immediately after settings load
root.wallpaperChanged(monitors[i].name, monitors[i].wallpaper)
}
}