on xenial help sign in
Try with lots more logging
commita14c0c70dec881898dbb8c3c04f30a365e1896f2 authorDalton Durst <me@daltondurst.com> dateFri 20 Jul 2018, 09:57 (8 years ago) parentfe329c3
3 files changed+16−7
qml/Wizard/Pages.qml+13−7 qml/Wizard/Pages/10-welcome.qml+2 qml/Wizard/Pages/80-finished.qml+1
qml/Wizard/Pages.qml+13−7
@@ -139,18 +139,20 @@ StyledItem {
139139
140140 function load(path) {
141141 if (currentPage) {
142− currentPage.enabled = false
142+ currentPage.enabled = false;
143143 }
144144
145145 // First load it invisible, check that we should actually use
146146 // this page, and either skip it or continue.
147− push(path, {"opacity": 0, "enabled": false})
147+ push(path, {"opacity": 0, "enabled": false});
148148
149149 timeout.restart();
150150
151+ console.info("Loading page " + currentPage.objectName);
152+
151153 // Check for immediate skip or not. We may have to wait for
152154 // skipValid to be assigned (see Connections object below)
153− checkSkip()
155+ checkSkip();
154156
155157 var isPrimaryPage = !currentPage.customTitle;
156158 if (isPrimaryPage) {
@@ -168,19 +170,23 @@ StyledItem {
168170 }
169171
170172 function checkSkip() {
173+ console.warn("Evaluating skip on " + currentPage.objectName);
171174 if (!currentPage) { // may have had a parse error
172175 console.warn("Wizard page skipped due to possible parse error.");
173− next()
176+ next();
174177 } else if (currentPage.skipValid) {
175178 if (currentPage.skip) {
176− next()
179+ next();
180+ console.warn("Wizard page " + currentPage.objectName + " skipped on request");
177181 } else if ( !(itemInArray(root.runningWizardVersion, currentPage.showOnVersions)) &&
178182 (currentPage.showOnVersions.length > 0) ) {
179183 // The page is not supposed to run on this version of the wizard
184+ console.warn("Wizard page " + currentPage.objectName + " skipped, it is not marked to run on this version.");
180185 next();
181186 } else {
182− currentPage.opacity = 1
183− currentPage.enabled = true
187+ console.warn("Starting wizard page " + currentPage.objectName);
188+ currentPage.opacity = 1;
189+ currentPage.enabled = true;
184190 timeout.stop();
185191 }
186192 }
qml/Wizard/Pages/10-welcome.qml+2
@@ -28,6 +28,8 @@ LocalComponents.Page {
2828 title: i18n.tr("Language")
2929 forwardButtonSourceComponent: forwardButton
3030
31+ showOnVersions: []
32+
3133 UbuntuLanguagePlugin {
3234 id: plugin
3335 }
qml/Wizard/Pages/80-finished.qml+1
@@ -25,6 +25,7 @@ LocalComponents.Page {
2525 customTitle: true
2626 lastPage: true
2727 buttonBarVisible: false
28+ showOnVersions: []
2829
2930 Component.onCompleted: {
3031 state = "reanchored";