From bf493b39fd826b23cda071a4cfb7f1f520cf25bb Mon Sep 17 00:00:00 2001 From: bbedward Date: Thu, 14 Aug 2025 23:43:07 -0400 Subject: [PATCH] optimize wallpaper --- Modules/WallpaperBackground.qml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/Modules/WallpaperBackground.qml b/Modules/WallpaperBackground.qml index 1a148225..45c1d1e1 100644 --- a/Modules/WallpaperBackground.qml +++ b/Modules/WallpaperBackground.qml @@ -104,13 +104,21 @@ LazyLoader { fillMode: Image.PreserveAspectCrop smooth: true asynchronous: true - cache: true + cache: false + sourceSize.width: parent.width + sourceSize.height: parent.height opacity: 0 onStatusChanged: { - if (status === Image.Ready) + if (status === Image.Ready) { root.current = this + if (root.current === one && two.source) { + two.source = "" + } else if (root.current === two && one.source) { + one.source = "" + } + } } states: State {