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

Proposed by Ken VanDine
Status: Merged
Approved by: Jonas G. Drange
Approved revision: 1722
Merged at revision: 1725
Proposed branch: lp:~ken-vandine/ubuntu-system-settings/devModeVisibility
Merge into: lp:ubuntu-system-settings
Prerequisite: lp:~ken-vandine/ubuntu-system-settings/urfkill_suggests
Diff against target: 73 lines (+15/-1)
4 files modified
debian/control (+1/-1)
plugins/about/PageComponent.qml (+1/-0)
plugins/about/storageabout.cpp (+9/-0)
plugins/about/storageabout.h (+4/-0)
To merge this branch: bzr merge lp:~ken-vandine/ubuntu-system-settings/devModeVisibility
Reviewer Review Type Date Requested Status
Jonas G. Drange (community) Approve
system-apps-ci-bot continuous-integration Pending
Review via email: mp+306465@code.launchpad.net

This proposal supersedes a proposal from 2016-09-21.

Commit message

Only show Developer Mode setting if we can set it. Dropped dbus-property-service to suggests.

Description of the change

Only show Developer Mode setting if we can set it. Dropped dbus-property-service to suggests.

To post a comment you must log in.
Revision history for this message
Jonas G. Drange (jonas-drange) wrote : Posted in a previous version of this proposal

LGTM, thanks

review: Approve
Revision history for this message
system-apps-ci-bot (system-apps-ci-bot) wrote : Posted in a previous version of this proposal

FAILED: Continuous integration, rev:1721
https://jenkins.canonical.com/system-apps/job/lp-ubuntu-system-settings-ci/158/
Executed test runs:
    FAILURE: https://jenkins.canonical.com/system-apps/job/build/1592/console
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-0-fetch/1592
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=vivid+overlay/1440
        deb: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=vivid+overlay/1440/artifact/output/*zip*/output.zip
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=xenial+overlay/1440
        deb: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=xenial+overlay/1440/artifact/output/*zip*/output.zip
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=yakkety/1440
        deb: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=yakkety/1440/artifact/output/*zip*/output.zip
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=vivid+overlay/1440
        deb: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=vivid+overlay/1440/artifact/output/*zip*/output.zip
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=xenial+overlay/1440
        deb: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=xenial+overlay/1440/artifact/output/*zip*/output.zip
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=yakkety/1440
        deb: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=yakkety/1440/artifact/output/*zip*/output.zip
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=vivid+overlay/1440
        deb: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=vivid+overlay/1440/artifact/output/*zip*/output.zip
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=xenial+overlay/1440/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=yakkety/1440/console

Click here to trigger a rebuild:
https://jenkins.canonical.com/system-apps/job/lp-ubuntu-system-settings-ci/158/rebuild

review: Needs Fixing (continuous-integration)
Revision history for this message
Jonas G. Drange (jonas-drange) :
review: Approve
1723. By Ken VanDine

merged prereq

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/control'
2--- debian/control 2016-09-27 13:31:04 +0000
3+++ debian/control 2016-09-27 13:31:04 +0000
4@@ -79,7 +79,6 @@
5 accountsservice-ubuntu-schemas (>= 0.0.7),
6 bluez (>= 5.23),
7 click | ubuntu-snappy-cli,
8- dbus-property-service [amd64 arm64 armhf i386],
9 gsettings-desktop-schemas,
10 gsettings-ubuntu-schemas (>= 0.0.7),
11 indicator-bluetooth (>> 0.0.6+13.10.20131010),
12@@ -112,6 +111,7 @@
13 qml-module-ubuntu-connectivity (>= 0.7.1)
14 Suggests: system-image-dbus (>= 3.1),
15 aethercast,
16+ dbus-property-service,
17 urfkill,
18 Recommends: ubuntu-system-settings-online-accounts,
19 ubuntu-touch-sounds,
20
21=== modified file 'plugins/about/PageComponent.qml'
22--- plugins/about/PageComponent.qml 2016-09-07 11:49:00 +0000
23+++ plugins/about/PageComponent.qml 2016-09-27 13:31:04 +0000
24@@ -236,6 +236,7 @@
25 SettingsListItems.SingleValueProgression {
26 objectName: "devmodeItem"
27 text: i18n.tr("Developer mode")
28+ visible: backendInfos.developerModeCapable
29 onClicked: pageStack.push(Qt.resolvedUrl("DevMode.qml"))
30 }
31 }
32
33=== modified file 'plugins/about/storageabout.cpp'
34--- plugins/about/storageabout.cpp 2016-03-30 17:43:50 +0000
35+++ plugins/about/storageabout.cpp 2016-09-27 13:31:04 +0000
36@@ -206,6 +206,15 @@
37 return m_ubuntuBuildID;
38 }
39
40+bool StorageAbout::getDeveloperModeCapable() const
41+{
42+ QDBusReply<bool> reply = m_propertyService->call("GetProperty", "adb");
43+
44+ if (reply.isValid())
45+ return true;
46+ return false;
47+}
48+
49 bool StorageAbout::getDeveloperMode()
50 {
51 QDBusReply<bool> reply = m_propertyService->call("GetProperty", "adb");
52
53=== modified file 'plugins/about/storageabout.h'
54--- plugins/about/storageabout.h 2016-03-30 16:37:40 +0000
55+++ plugins/about/storageabout.h 2016-09-27 13:31:04 +0000
56@@ -90,6 +90,9 @@
57 Q_PROPERTY(bool developerMode
58 READ getDeveloperMode
59 WRITE setDeveloperMode)
60+ Q_PROPERTY(bool developerModeCapable
61+ READ getDeveloperModeCapable
62+ CONSTANT)
63
64 public:
65 explicit StorageAbout(QObject *parent = 0);
66@@ -115,6 +118,7 @@
67 Q_INVOKABLE bool isInternal(const QString &drive) const;
68 bool getDeveloperMode();
69 void setDeveloperMode(bool newMode);
70+ bool getDeveloperModeCapable() const;
71
72 Q_SIGNALS:
73 void sortRoleChanged();

Subscribers

People subscribed via source and target branches