@@ -333,6 +333,15 @@ Item {
333333 minPinLength: 4
334334 maxPinLength: 4
335335
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")
344+
336345 // FIXME: We *should* show emergency dialer if there is a SIM present,
337346 // regardless of whether the side stage is enabled. But right now,
338347 // the assumption is that narrow screens are phones which have SIMs
@@ -386,20 +395,7 @@ Item {
386395 return; // could happen if hideGreeter() comes in before we prompt
387396 }
388397 if (greeter.narrowMode) {
389− if (isDefaultPrompt) {
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")
394− } else {
395− lockscreen.infoText = i18n.tr("Enter passcode")
396− lockscreen.errorText = i18n.tr("Sorry, incorrect passcode")
397− }
398− } else {
399− lockscreen.infoText = i18n.tr("Enter %1").arg(text.toLowerCase())
400− lockscreen.errorText = i18n.tr("Sorry, incorrect %1").arg(text.toLowerCase())
401− }
402−
398+ lockscreen.promptText = isDefaultPrompt ? "" : text.toLowerCase();
403399 lockscreen.maybeShow();
404400 }
405401 }
@@ -803,7 +799,7 @@ Item {
803799 id: edgeDemo
804800 objectName: "edgeDemo"
805801 z: alphaDisclaimerLabel.z + 10
806− paused: Powerd.status === Powerd.Off // Saves power
802+ paused: Powerd.status === Powerd.Off || wizard.active // Saves power
807803 greeter: greeter
808804 launcher: launcher
809805 panel: panel