From 6af915983c45b80a75599c1f19fd8a02d966b142 Mon Sep 17 00:00:00 2001 From: LemmyCook Date: Fri, 29 Aug 2025 21:52:16 -0400 Subject: [PATCH] Wallpaper: flush nextWallpaper.source when no longer needed in a attempt to save ram --- Modules/Background/Background.qml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Modules/Background/Background.qml b/Modules/Background/Background.qml index 8ad1612..780e17b 100644 --- a/Modules/Background/Background.qml +++ b/Modules/Background/Background.qml @@ -180,6 +180,7 @@ Variants { onFinished: { // Swap images after transition completes currentWallpaper.source = nextWallpaper.source + nextWallpaper.source = "" transitionProgress = 0.0 transitioning = false } @@ -194,7 +195,7 @@ Variants { function setWallpaperImmediate(source) { currentWallpaper.source = source - nextWallpaper.source = source + nextWallpaper.source = "" transitionProgress = 0.0 transitioning = false } @@ -204,8 +205,9 @@ Variants { if (transitioning) { // We are interrupting a transition - currentWallpaper.source = nextWallpaper.source transitionAnimation.stop() + currentWallpaper.source = nextWallpaper.source + nextWallpaper.source = "" transitionProgress = 0 transitioning = false }