Wallpaper: flush nextWallpaper.source when no longer needed in a attempt to save ram
This commit is contained in:
parent
da266792df
commit
6af915983c
1 changed files with 4 additions and 2 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue