on xenial help sign in
Fix incorrect reference to root
commit0a5bf1999a474ff6802a6384988322c4fd1e22cc authorDalton Durst <me@daltondurst.com> dateFri 13 Jul 2018, 18:17 (8 years ago) parentf0dad4e
1 file changed+8−8
qml/Wizard/Pages/78-app-update.qml+8−8
qml/Wizard/Pages/78-app-update.qml+8−8
@@ -82,20 +82,20 @@ LocalComponents.Page {
8282 height: hidden ? 0 : units.gu(8)
8383 clip: true
8484 status: UpdateManager.status
85− batchMode: root.batchMode
86− updatesCount: root.updatesCount
87− online: root.online
85+ batchMode: appUpdatePage.batchMode
86+ updatesCount: appUpdatePage.updatesCount
87+ online: appUpdatePage.online
8888 onStop: UpdateManager.cancel()
8989
9090 onRequestInstall: {
9191 install();
9292 }
9393 onInstall: {
94− root.batchMode = true
94+ appUpdatePage.batchMode = true
9595 if (requireRestart) {
96− postAllBatchHandler.target = root;
96+ postAllBatchHandler.target = appUpdatePage;
9797 } else {
98− postClickBatchHandler.target = root;
98+ postClickBatchHandler.target = appUpdatePage;
9999 }
100100 }
101101 }
@@ -122,7 +122,7 @@ LocalComponents.Page {
122122 wrapMode: Text.WordWrap
123123 text: {
124124 var s = UpdateManager.status;
125− if (!root.online) {
125+ if (!appUpdatePage.online) {
126126 return i18n.tr("Connect to the Internet to check for updates.");
127127 } else if (s === UpdateManager.StatusIdle && updatesCount === 0) {
128128 return i18n.tr("Software is up to date");
@@ -216,7 +216,7 @@ LocalComponents.Page {
216216 target: null
217217 onUpdatesCountChanged: {
218218 if (target.updatesCount === 0) {
219− root.batchMode = false;
219+ appUpdatePage.batchMode = false;
220220 target = null;
221221 }
222222 }