Merge lp:~diegosarmentero/ubuntu-system-settings/fixing-progress into lp:ubuntu-system-settings

Proposed by Diego Sarmentero
Status: Merged
Approved by: Ken VanDine
Approved revision: 957
Merged at revision: 973
Proposed branch: lp:~diegosarmentero/ubuntu-system-settings/fixing-progress
Merge into: lp:ubuntu-system-settings
Diff against target: 67 lines (+19/-0)
4 files modified
plugins/system-update/PageComponent.qml (+1/-0)
plugins/system-update/system_update.cpp (+4/-0)
plugins/system-update/update_manager.cpp (+13/-0)
plugins/system-update/update_manager.h (+1/-0)
To merge this branch: bzr merge lp:~diegosarmentero/ubuntu-system-settings/fixing-progress
Reviewer Review Type Date Requested Status
PS Jenkins bot continuous-integration Approve
Jonas G. Drange (community) Approve
Sebastien Bacher (community) Needs Fixing
Review via email: mp+232593@code.launchpad.net

Commit message

- Fix out of sync image download
- Refresh scope after installation

To post a comment you must log in.
954. By Diego Sarmentero

[ Ken VanDine ]
* SIM PIN lock implementation
[ jonas-drange ]
* [main panel] add visual feedback on press
* [cellular] uses modemtechnologies property from ofono to populate
  technology preference options (LP: #1346790)
[ Sebastien Bacher ]
* [language] workaround inconsistent languages casing (LP: #1362123)
* [background] Display the default background selected (LP: #1349329)
* [storage] display translated names (LP: #1360207)
* [updates] don't display animations when clicking on update rows (LP:
  #1360364)
* [background] don't use an icon in the headerbar (LP: #1362122)
[ Mathieu Trudel-Lapierre ]
* Fix PIN code or passcode requests by properly matching the tag for
  the original request. (LP: #1355152)

955. By Diego Sarmentero

remove unused function declaration

Revision history for this message
Sebastien Bacher (seb128) wrote :

Thanks, but better to not add a changelog manually and rather let the CI build it for you (especially that you didn't list the bugs to close in your manual entry)

Why do you change the highlightFollowsCurrentItem mode? That seems a different issue than the refresh problems

review: Needs Fixing
956. By Diego Sarmentero

check if interface is valid

957. By Diego Sarmentero

fixing changelog as requested

Revision history for this message
Diego Sarmentero (diegosarmentero) wrote :

> Thanks, but better to not add a changelog manually and rather let the CI build
> it for you (especially that you didn't list the bugs to close in your manual
> entry)
>
> Why do you change the highlightFollowsCurrentItem mode? That seems a different
> issue than the refresh problems

Fixed

Revision history for this message
Jonas G. Drange (jonas-drange) wrote :

Lgtm, thanks

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

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 2014-08-27 08:39:33 +0000
3+++ plugins/system-update/PageComponent.qml 2014-08-28 17:42:50 +0000
4@@ -379,6 +379,7 @@
5 buttonAppUpdate.visible = false;
6 textArea.message = i18n.tr("Installed");
7 root.updatesAvailable -= 1;
8+ updateManager.updateClickScope();
9 }
10
11 onErrorFound: {
12
13=== modified file 'plugins/system-update/system_update.cpp'
14--- plugins/system-update/system_update.cpp 2014-07-17 09:51:33 +0000
15+++ plugins/system-update/system_update.cpp 2014-08-28 17:42:50 +0000
16@@ -206,6 +206,10 @@
17 } else {
18 Q_EMIT updateNotFound();
19 }
20+ if (downloading) {
21+ downloadUpdate();
22+ update->setSelected(true);
23+ }
24 }
25
26 void SystemUpdate::updateDownloadProgress(int percentage, double eta)
27
28=== modified file 'plugins/system-update/update_manager.cpp'
29--- plugins/system-update/update_manager.cpp 2014-08-28 07:22:28 +0000
30+++ plugins/system-update/update_manager.cpp 2014-08-28 17:42:50 +0000
31@@ -26,6 +26,7 @@
32 #include <QJsonArray>
33 #include <QJsonValue>
34 #include <QProcessEnvironment>
35+#include <QDBusInterface>
36
37 using namespace UbuntuOne;
38
39@@ -287,4 +288,16 @@
40 app->setDownloadUrl(app->getClickUrl());
41 }
42
43+void UpdateManager::updateClickScope()
44+{
45+ // Refresh click scope
46+ QDBusInterface iface("com.canonical.unity.scopes",
47+ "/com/canonical/unity/scopes",
48+ "com.canonical.unity.scopes",
49+ QDBusConnection::sessionBus(), 0);
50+ if (iface.isValid()) {
51+ iface.call(QLatin1String("InvalidateResults"), QLatin1String("clickscope"));
52+ }
53+}
54+
55 }
56
57=== modified file 'plugins/system-update/update_manager.h'
58--- plugins/system-update/update_manager.h 2014-07-24 07:29:04 +0000
59+++ plugins/system-update/update_manager.h 2014-08-28 17:42:50 +0000
60@@ -85,6 +85,7 @@
61 Q_INVOKABLE void pauseDownload(const QString &packagename);
62 Q_INVOKABLE void retryDownload(const QString &packagename);
63 Q_INVOKABLE void applySystemUpdate() { m_systemUpdate.applyUpdate(); }
64+ Q_INVOKABLE void updateClickScope();
65
66 QVariantList model() const { return m_model; }
67 int downloadMode() { return m_systemUpdate.downloadMode(); }

Subscribers

People subscribed via source and target branches