@@ -333,6 +333,15 @@ Item {
333 minPinLength: 4
333 minPinLength: 4
334 maxPinLength: 4
334 maxPinLength: 4
336+ property string promptText
337+ infoText: promptText !== "" ? i18n.tr("Enter %1").arg(promptText) :
338+ alphaNumeric ? i18n.tr("Enter passphrase") :
339+ i18n.tr("Enter passcode")
340+ errorText: promptText !== "" ? i18n.tr("Sorry, incorrect %1").arg(promptText) :
341+ alphaNumeric ? i18n.tr("Sorry, incorrect passphrase") + "\n" +
342+ i18n.tr("Please re-enter") :
343+ i18n.tr("Sorry, incorrect passcode")
336 // FIXME: We *should* show emergency dialer if there is a SIM present,
345 // FIXME: We *should* show emergency dialer if there is a SIM present,
337 // regardless of whether the side stage is enabled. But right now,
346 // regardless of whether the side stage is enabled. But right now,
338 // the assumption is that narrow screens are phones which have SIMs
347 // the assumption is that narrow screens are phones which have SIMs
@@ -386,20 +395,7 @@ Item {
386 return; // could happen if hideGreeter() comes in before we prompt
395 return; // could happen if hideGreeter() comes in before we prompt
388 if (greeter.narrowMode) {
397 if (greeter.narrowMode) {
389− if (isDefaultPrompt) {
398+ lockscreen.promptText = isDefaultPrompt ? "" : text.toLowerCase();
390− if (lockscreen.alphaNumeric) {
391− lockscreen.infoText = i18n.tr("Enter passphrase")
392− lockscreen.errorText = i18n.tr("Sorry, incorrect passphrase") + "\n" +
393− i18n.tr("Please re-enter")
395− lockscreen.infoText = i18n.tr("Enter passcode")
396− lockscreen.errorText = i18n.tr("Sorry, incorrect passcode")
399− lockscreen.infoText = i18n.tr("Enter %1").arg(text.toLowerCase())
400− lockscreen.errorText = i18n.tr("Sorry, incorrect %1").arg(text.toLowerCase())
403 lockscreen.maybeShow();
399 lockscreen.maybeShow();
@@ -803,7 +799,7 @@ Item {
803 id: edgeDemo
799 id: edgeDemo
804 objectName: "edgeDemo"
800 objectName: "edgeDemo"
805 z: alphaDisclaimerLabel.z + 10
801 z: alphaDisclaimerLabel.z + 10
806− paused: Powerd.status === Powerd.Off // Saves power
802+ paused: Powerd.status === Powerd.Off || wizard.active // Saves power
807 greeter: greeter
803 greeter: greeter
808 launcher: launcher
804 launcher: launcher
809 panel: panel
805 panel: panel