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

Proposed by Ken VanDine
Status: Superseded
Proposed branch: lp:~ken-vandine/ubuntu-system-settings/devModeVisibility
Merge into: lp:ubuntu-system-settings
Diff against target: 93 lines (+17/-2)
5 files modified
debian/control (+2/-2)
plugins/about/PageComponent.qml (+1/-0)
plugins/about/storageabout.cpp (+9/-0)
plugins/about/storageabout.h (+4/-0)
plugins/flight-mode/flight-mode.settings (+1/-0)
To merge this branch: bzr merge lp:~ken-vandine/ubuntu-system-settings/devModeVisibility
Reviewer Review Type Date Requested Status
system-apps-ci-bot continuous-integration Needs Fixing
Jonas G. Drange (community) Approve
Review via email: mp+306338@code.launchpad.net

This proposal has been superseded by a proposal from 2016-09-22.

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 :

LGTM, thanks

review: Approve
Revision history for this message
system-apps-ci-bot (system-apps-ci-bot) wrote :

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)
1722. By Ken VanDine

merged urfkill branch

1723. By Ken VanDine

merged prereq

Unmerged revisions

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-13 14:28:06 +0000
3+++ debian/control 2016-09-22 13:10:38 +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@@ -102,7 +101,6 @@
13 whoopsie-preferences (>= 0.9),
14 libsystemsettings1 (= ${binary:Version}),
15 ubuntu-keyboard-data (>= 0.99.trunk.phablet2+15.04.20150421),
16- urfkill,
17 # for the session-migration script (python3 itself also for the push helper)
18 python3,
19 python3-gi,
20@@ -112,6 +110,8 @@
21 qml-module-ubuntu-connectivity (>= 0.7.1)
22 Suggests: system-image-dbus (>= 3.1),
23 aethercast,
24+ dbus-property-service,
25+ urfkill,
26 Recommends: ubuntu-system-settings-online-accounts,
27 ubuntu-touch-sounds,
28 Conflicts: ubuntu-system-settings-example
29
30=== modified file 'plugins/about/PageComponent.qml'
31--- plugins/about/PageComponent.qml 2016-09-07 11:49:00 +0000
32+++ plugins/about/PageComponent.qml 2016-09-22 13:10:38 +0000
33@@ -236,6 +236,7 @@
34 SettingsListItems.SingleValueProgression {
35 objectName: "devmodeItem"
36 text: i18n.tr("Developer mode")
37+ visible: backendInfos.developerModeCapable
38 onClicked: pageStack.push(Qt.resolvedUrl("DevMode.qml"))
39 }
40 }
41
42=== modified file 'plugins/about/storageabout.cpp'
43--- plugins/about/storageabout.cpp 2016-03-30 17:43:50 +0000
44+++ plugins/about/storageabout.cpp 2016-09-22 13:10:38 +0000
45@@ -206,6 +206,15 @@
46 return m_ubuntuBuildID;
47 }
48
49+bool StorageAbout::getDeveloperModeCapable() const
50+{
51+ QDBusReply<bool> reply = m_propertyService->call("GetProperty", "adb");
52+
53+ if (reply.isValid())
54+ return true;
55+ return false;
56+}
57+
58 bool StorageAbout::getDeveloperMode()
59 {
60 QDBusReply<bool> reply = m_propertyService->call("GetProperty", "adb");
61
62=== modified file 'plugins/about/storageabout.h'
63--- plugins/about/storageabout.h 2016-03-30 16:37:40 +0000
64+++ plugins/about/storageabout.h 2016-09-22 13:10:38 +0000
65@@ -90,6 +90,9 @@
66 Q_PROPERTY(bool developerMode
67 READ getDeveloperMode
68 WRITE setDeveloperMode)
69+ Q_PROPERTY(bool developerModeCapable
70+ READ getDeveloperModeCapable
71+ CONSTANT)
72
73 public:
74 explicit StorageAbout(QObject *parent = 0);
75@@ -115,6 +118,7 @@
76 Q_INVOKABLE bool isInternal(const QString &drive) const;
77 bool getDeveloperMode();
78 void setDeveloperMode(bool newMode);
79+ bool getDeveloperModeCapable() const;
80
81 Q_SIGNALS:
82 void sortRoleChanged();
83
84=== modified file 'plugins/flight-mode/flight-mode.settings'
85--- plugins/flight-mode/flight-mode.settings 2015-11-23 14:38:43 +0000
86+++ plugins/flight-mode/flight-mode.settings 2016-09-22 13:10:38 +0000
87@@ -13,5 +13,6 @@
88 ],
89 "has-dynamic-keywords": false,
90 "has-dynamic-visibility": false,
91+ "visible-if-file-exists": "/etc/dbus-1/system.d/org.freedesktop.URfkill.conf",
92 "entry-component": "EntryComponent.qml"
93 }

Subscribers

People subscribed via source and target branches