Background: "explicitly set currentWallpaper.source to nothing as an

attempt to fix the odd memory usage after a few hours"
This commit is contained in:
Ly-sec
2025-09-29 13:18:45 +02:00
parent 0e69256279
commit f11d27bcf1
+6
View File
@@ -243,6 +243,9 @@ Variants {
easing.type: Easing.InOutCubic
onFinished: {
// Swap images after transition completes
if (currentWallpaper.source !== "") {
currentWallpaper.source = ""
}
currentWallpaper.source = nextWallpaper.source
nextWallpaper.source = ""
transitionProgress = 0.0
@@ -255,6 +258,9 @@ Variants {
function setWallpaperImmediate(source) {
transitionAnimation.stop()
transitionProgress = 0.0
if (currentWallpaper.source !== "") {
currentWallpaper.source = ""
}
currentWallpaper.source = source
nextWallpaper.source = ""
}