Wallpaper: delay service initialization until settings are ready

This commit is contained in:
LemmyCook 2025-08-29 12:41:37 -04:00
parent 7c6c908076
commit c37ef867a1
4 changed files with 12 additions and 17 deletions

View file

@ -11,9 +11,8 @@ Variants {
delegate: Loader {
required property ShellScreen modelData
property string wallpaperSource: WallpaperService.getWallpaper(modelData.name)
active: CompositorService.isNiri && wallpaperSource !== ""
active: Settings.isLoaded && CompositorService.isNiri
sourceComponent: PanelWindow {
Component.onCompleted: {
@ -37,7 +36,7 @@ Variants {
id: bgImage
anchors.fill: parent
fillMode: Image.PreserveAspectCrop
source: wallpaperSource
source: WallpaperService.getWallpaper(modelData.name)
cache: true
smooth: true
mipmap: false