on xenial help sign in
Don't load Pages.qml unless we need to
4b57472Michael Terry
qml/Wizard/Pages.qml+1
@@ -30,6 +30,7 @@ Item {
30
30
31 id: root
31 id: root
32 focus: true
32 focus: true
33+ anchors.fill: parent
33
34
34 // These should be set by a security page and we apply the settings when
35 // These should be set by a security page and we apply the settings when
35 // the user exits the wizard.
36 // the user exits the wizard.
qml/Wizard/Wizard.qml+10−3
@@ -41,9 +41,16 @@ Showable {
41 id: loader
41 id: loader
42 anchors.fill: parent
42 anchors.fill: parent
43 active: System.wizardEnabled
43 active: System.wizardEnabled
44− sourceComponent: Pages {
44+ source: "Pages.qml"
45− anchors.fill: parent
45+
46+ Binding {
47+ target: loader.item
48+ property: "background"
46− background: root.background
49+ value: root.background
50+ }
51+
52+ Connections {
53+ target: loader.item
47 onQuit: root.hide()
54 onQuit: root.hide()
48 }
55 }
49 }
56 }