on xenial help sign in
Improve readability
commit482b6d2cc1e4ba2f06a9ca00411cb470717edb42 authorMichael Terry <michael.terry@canonical.com> dateFri 1 Aug 2014, 10:35 (12 years ago) parent42d1f8e
1 file changed+7−6
qml/Components/Lockscreen.qml+7−6
qml/Components/Lockscreen.qml+7−6
@@ -158,6 +158,10 @@ Showable {
158158 property bool waiting: false
159159 property bool showWrongText: false
160160
161+ readonly property string forcedDelayText: i18n.tr("Too many incorrect attempts") +
162+ "\n" +
163+ i18n.tr("Please wait")
164+
161165 source: (!resetting && root.required) ? (root.alphaNumeric ? "PassphraseLockscreen.qml" : "PinLockscreen.qml") : ""
162166 onSourceChanged: {
163167 waiting = false
@@ -190,12 +194,9 @@ Showable {
190194 Binding {
191195 target: pinPadLoader.item
192196 property: "placeholderText"
193− value: forcedDelayTimer.running ?
194− (i18n.tr("Too many incorrect attempts") +
195− "\n" +
196− i18n.tr("Please wait")) :
197− (pinPadLoader.showWrongText ?
198− root.wrongPlaceholderText : root.placeholderText)
197+ value: forcedDelayTimer.running ? pinPadLoader.forcedDelayText :
198+ (pinPadLoader.showWrongText ? root.wrongPlaceholderText :
199+ root.placeholderText)
199200 }
200201 Binding {
201202 target: pinPadLoader.item