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
1=== modified file 'plugins/security-privacy/PageComponent.qml'
2--- plugins/security-privacy/PageComponent.qml 2015-05-21 13:32:41 +0000
3+++ plugins/security-privacy/PageComponent.qml 2015-08-21 08:04:36 +0000
4@@ -117,27 +117,7 @@
5 ListItem.SingleValue {
6 id: lockingControl
7 objectName: "lockingControl"
8- text: i18n.tr("Lock phone")
9- value: {
10- if (batteryBackend.powerdRunning ) {
11- var timeout = Math.round(powerSettings.activityTimeout/60)
12- return (powerSettings.activityTimeout != 0) ?
13- // TRANSLATORS: %1 is the number of minutes
14- i18n.tr("After %1 minute",
15- "After %1 minutes",
16- timeout).arg(timeout) :
17- i18n.tr("Never")
18- }
19- else {
20- var timeout = Math.round(powerSettings.idleDelay/60)
21- return (powerSettings.idleDelay != 0) ?
22- // TRANSLATORS: %1 is the number of minutes
23- i18n.tr("After %1 minute",
24- "After %1 minutes",
25- timeout).arg(timeout) :
26- i18n.tr("Manually")
27- }
28- }
29+ text: i18n.tr("Locking and unlocking")
30 progression: true
31 onClicked: pageStack.push(Qt.resolvedUrl("PhoneLocking.qml"), {usePowerd: usePowerd, powerSettings: powerSettings})
32 }
33
34=== modified file 'plugins/security-privacy/PhoneLocking.qml'
35--- plugins/security-privacy/PhoneLocking.qml 2015-07-13 12:02:13 +0000
36+++ plugins/security-privacy/PhoneLocking.qml 2015-08-21 08:04:36 +0000
37@@ -28,7 +28,7 @@
38 ItemPage {
39 id: root
40 objectName: "phoneLockingPage"
41- title: i18n.tr("Phone locking")
42+ title: i18n.tr("Locking and unlocking")
43
44 property bool usePowerd
45 property variant powerSettings

Subscribers

People subscribed via source and target branches