Merge lp:~seb128/ubuntu-system-settings/security-locking-label into lp:ubuntu-system-settings

Proposed by Sebastien Bacher
Status: Merged
Approved by: Ken VanDine
Approved revision: 1507
Merged at revision: 1508
Proposed branch: lp:~seb128/ubuntu-system-settings/security-locking-label
Merge into: lp:ubuntu-system-settings
Diff against target: 45 lines (+2/-22)
2 files modified
plugins/security-privacy/PageComponent.qml (+1/-21)
plugins/security-privacy/PhoneLocking.qml (+1/-1)
To merge this branch: bzr merge lp:~seb128/ubuntu-system-settings/security-locking-label
Reviewer Review Type Date Requested Status
Ken VanDine Approve
Michael Terry (community) Approve
PS Jenkins bot continuous-integration Needs Fixing
Review via email: mp+268713@code.launchpad.net

Commit message

[security-privacy] rename the "Lock phone" item to "Locking and unlocking"
and do not include the screen delay as a value, it misleads users to think
that the section is only about that where it also includes security options

Description of the change

[security-privacy] rename the "Lock phone" item to "Locking and unlocking"
and do not include the screen delay as a value, it misleads users to think
that the section is only about that where it also includes security options

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Michael Terry (mterry) wrote :

Works for me and fixes an annoying nit with the UI. :)

review: Approve
Revision history for this message
Michael Terry (mterry) wrote :

(Maybe also worth cleaning up the filename PhoneLocking.qml, but not a big deal)

Revision history for this message
Ken VanDine (ken-vandine) wrote :

yay, removing code!

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'plugins/security-privacy/PageComponent.qml'
--- plugins/security-privacy/PageComponent.qml 2015-05-21 13:32:41 +0000
+++ plugins/security-privacy/PageComponent.qml 2015-08-21 08:04:36 +0000
@@ -117,27 +117,7 @@
117 ListItem.SingleValue {117 ListItem.SingleValue {
118 id: lockingControl118 id: lockingControl
119 objectName: "lockingControl"119 objectName: "lockingControl"
120 text: i18n.tr("Lock phone")120 text: i18n.tr("Locking and unlocking")
121 value: {
122 if (batteryBackend.powerdRunning ) {
123 var timeout = Math.round(powerSettings.activityTimeout/60)
124 return (powerSettings.activityTimeout != 0) ?
125 // TRANSLATORS: %1 is the number of minutes
126 i18n.tr("After %1 minute",
127 "After %1 minutes",
128 timeout).arg(timeout) :
129 i18n.tr("Never")
130 }
131 else {
132 var timeout = Math.round(powerSettings.idleDelay/60)
133 return (powerSettings.idleDelay != 0) ?
134 // TRANSLATORS: %1 is the number of minutes
135 i18n.tr("After %1 minute",
136 "After %1 minutes",
137 timeout).arg(timeout) :
138 i18n.tr("Manually")
139 }
140 }
141 progression: true121 progression: true
142 onClicked: pageStack.push(Qt.resolvedUrl("PhoneLocking.qml"), {usePowerd: usePowerd, powerSettings: powerSettings})122 onClicked: pageStack.push(Qt.resolvedUrl("PhoneLocking.qml"), {usePowerd: usePowerd, powerSettings: powerSettings})
143 }123 }
144124
=== modified file 'plugins/security-privacy/PhoneLocking.qml'
--- plugins/security-privacy/PhoneLocking.qml 2015-07-13 12:02:13 +0000
+++ plugins/security-privacy/PhoneLocking.qml 2015-08-21 08:04:36 +0000
@@ -28,7 +28,7 @@
28ItemPage {28ItemPage {
29 id: root29 id: root
30 objectName: "phoneLockingPage"30 objectName: "phoneLockingPage"
31 title: i18n.tr("Phone locking")31 title: i18n.tr("Locking and unlocking")
3232
33 property bool usePowerd33 property bool usePowerd
34 property variant powerSettings34 property variant powerSettings

Subscribers

People subscribed via source and target branches