on xenial help sign in
Fix incorrect reference to root
0a5bf19Dalton Durst
qml/Wizard/Pages/78-app-update.qml+8−8
@@ -82,20 +82,20 @@ LocalComponents.Page {
82 height: hidden ? 0 : units.gu(8)
82 height: hidden ? 0 : units.gu(8)
83 clip: true
83 clip: true
84 status: UpdateManager.status
84 status: UpdateManager.status
85− batchMode: root.batchMode
85+ batchMode: appUpdatePage.batchMode
86− updatesCount: root.updatesCount
86+ updatesCount: appUpdatePage.updatesCount
87− online: root.online
87+ online: appUpdatePage.online
88 onStop: UpdateManager.cancel()
88 onStop: UpdateManager.cancel()
89
89
90 onRequestInstall: {
90 onRequestInstall: {
91 install();
91 install();
92 }
92 }
93 onInstall: {
93 onInstall: {
94− root.batchMode = true
94+ appUpdatePage.batchMode = true
95 if (requireRestart) {
95 if (requireRestart) {
96− postAllBatchHandler.target = root;
96+ postAllBatchHandler.target = appUpdatePage;
97 } else {
97 } else {
98− postClickBatchHandler.target = root;
98+ postClickBatchHandler.target = appUpdatePage;
99 }
99 }
100 }
100 }
101 }
101 }
@@ -122,7 +122,7 @@ LocalComponents.Page {
122 wrapMode: Text.WordWrap
122 wrapMode: Text.WordWrap
123 text: {
123 text: {
124 var s = UpdateManager.status;
124 var s = UpdateManager.status;
125− if (!root.online) {
125+ if (!appUpdatePage.online) {
126 return i18n.tr("Connect to the Internet to check for updates.");
126 return i18n.tr("Connect to the Internet to check for updates.");
127 } else if (s === UpdateManager.StatusIdle && updatesCount === 0) {
127 } else if (s === UpdateManager.StatusIdle && updatesCount === 0) {
128 return i18n.tr("Software is up to date");
128 return i18n.tr("Software is up to date");
@@ -216,7 +216,7 @@ LocalComponents.Page {
216 target: null
216 target: null
217 onUpdatesCountChanged: {
217 onUpdatesCountChanged: {
218 if (target.updatesCount === 0) {
218 if (target.updatesCount === 0) {
219− root.batchMode = false;
219+ appUpdatePage.batchMode = false;
220 target = null;
220 target = null;
221 }
221 }
222 }
222 }