@@ -382,10 +382,6 @@ Showable {
384 onShowMessage: {
384 onShowMessage: {
385− if (!lightDM.greeter.active) {
386− return; // could happen if hideGreeter() comes in before we prompt
389 // inefficient, but we only rarely deal with messages
385 // inefficient, but we only rarely deal with messages
390 var html = text.replace(/&/g, "&")
386 var html = text.replace(/&/g, "&")
391 .replace(/</g, "<")
387 .replace(/</g, "<")
@@ -395,20 +391,17 @@ Showable {
395 html = "<font color=\"#df382c\">" + html + "</font>";
391 html = "<font color=\"#df382c\">" + html + "</font>";
398− loader.item.showMessage(html);
395+ loader.item.showMessage(html);
401 onShowPrompt: {
399 onShowPrompt: {
402 d.waiting = false;
400 d.waiting = false;
404− // Check root.required as well -- even though it's directly used to
402+ if (loader.item) {
405− // determine greeter.active -- because this callback can be made
403+ loader.item.showPrompt(text, isSecret, isDefaultPrompt);
406− // after required=true, but before greeter.active gets updated.
407− if (!LightDMService.greeter.active && !root.required) {
408− return; // could happen if hideGreeter() comes in before we prompt
411− loader.item.showPrompt(text, isSecret, isDefaultPrompt);
414 onAuthenticationComplete: {
407 onAuthenticationComplete: {