Merge lp:~ken-vandine/ubuntu-system-settings/lp1505663 into lp:ubuntu-system-settings

Proposed by Ken VanDine
Status: Superseded
Proposed branch: lp:~ken-vandine/ubuntu-system-settings/lp1505663
Merge into: lp:ubuntu-system-settings
Diff against target: 73 lines (+7/-23)
1 file modified
plugins/system-update/PageComponent.qml (+7/-23)
To merge this branch: bzr merge lp:~ken-vandine/ubuntu-system-settings/lp1505663
Reviewer Review Type Date Requested Status
PS Jenkins bot continuous-integration Needs Fixing
Sebastien Bacher (community) Needs Fixing
Review via email: mp+275032@code.launchpad.net

This proposal has been superseded by a proposal from 2015-10-29.

Commit message

Ensure we only check for updates when NetworkingStatus.online is true

Description of the change

Ensure we only check for updates when NetworkingStatus.online is true

To post a comment you must log in.
Revision history for this message
Sebastien Bacher (seb128) wrote :

thanks, you have a console.warn() in there though, I guess it's a debug leftover?

the onClicked change also needs wrong, shouldn't we rather disable the button instead of having the action showed to the user but not doing that it should?

review: Needs Fixing
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
1546. By Ken VanDine

Merged trunk

1547. By Ken VanDine

merged retry removable branch

1548. By Ken VanDine

Removed debugging output

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)

Unmerged revisions

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'plugins/system-update/PageComponent.qml'
2--- plugins/system-update/PageComponent.qml 2015-09-18 14:18:11 +0000
3+++ plugins/system-update/PageComponent.qml 2015-10-29 20:39:08 +0000
4@@ -66,6 +66,7 @@
5 id: networkingStatus
6 target: NetworkingStatus
7 onOnlineChanged: {
8+ console.warn("Online: " + NetworkingStatus.online);
9 if (NetworkingStatus.online) {
10 activity.running = true;
11 root.state = "SEARCHING";
12@@ -84,7 +85,8 @@
13 onFinished: {
14 credentialsNotification.visible = false;
15 root.state = "SEARCHING";
16- UpdateManager.checkUpdates();
17+ if (NetworkingStatus.online)
18+ UpdateManager.checkUpdates();
19 }
20 }
21
22@@ -147,7 +149,7 @@
23 PropertyChanges { target: installAllButton; visible: false}
24 PropertyChanges { target: checkForUpdatesArea; visible: true}
25 PropertyChanges { target: updateNotification; visible: false}
26- PropertyChanges { target: activity; running: true}
27+ PropertyChanges { target: activity; running: NetworkingStatus.online}
28 },
29 State {
30 name: "NOUPDATES"
31@@ -179,7 +181,8 @@
32 Component.onCompleted: {
33 credentialsNotification.visible = false;
34 root.state = "SEARCHING";
35- UpdateManager.checkUpdates();
36+ if (NetworkingStatus.online)
37+ UpdateManager.checkUpdates();
38 }
39
40 onUpdateAvailableFound: {
41@@ -283,31 +286,12 @@
42 anchors {
43 left: activity.running ? activity.right : parent.left
44 top: parent.top
45- right: btnRetry.visible ? btnRetry.left : parent.right
46+ right: parent.right
47 rightMargin: units.gu(2)
48 leftMargin: units.gu(2)
49 }
50 height: parent.height
51 }
52-
53- Button {
54- id: btnRetry
55- text: i18n.tr("Retry")
56- color: UbuntuColors.orange
57- anchors {
58- right: parent.right
59- top: parent.top
60- bottom: parent.bottom
61- margins: units.gu(1)
62- }
63- visible: !activity.visible
64-
65- onClicked: {
66- activity.running = true;
67- root.state = "SEARCHING";
68- UpdateManager.checkUpdates();
69- }
70- }
71 }
72
73 ListItem.SingleControl {

Subscribers

People subscribed via source and target branches