Commit 45a2029a authored by Marco Martin's avatar Marco Martin Committed by Nate Graham

actually replace wallaper pages

it used to push a new page each time the wallpaer type was changed. this
was kindof a "leak" as more and more pages were created and never
deleted. use stack.replace instead.

(cherry picked from commit 72439412)
parent cad0d72a
......@@ -39,7 +39,7 @@ QtControls.StackView {
props["cfg_" + key] = wallpaperConfig[key]
}
var newItem = push(sourceFile, props, QtControls.StackView.ReplaceTransition)
var newItem = replace(sourceFile, props, QtControls.StackView.ReplaceTransition)
wallpaperConfig.valueChanged.connect(function(key, value) {
if (newItem["cfg_" + key] !== undefined) {
......@@ -62,7 +62,7 @@ QtControls.StackView {
}
}
else {
push(empty)
replace(empty)
}
}
Component {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment