Correct the status message when a printer needs a config change but is unreachable

CL-508
This commit is contained in:
Simon Edwards 2017-10-12 13:44:03 +02:00
parent 427afdbe23
commit eef4d61402

View File

@ -257,6 +257,11 @@ Rectangle
return catalog.i18nc("@label:status", "Disabled");
}
if (printer.status === "unreachable")
{
return printerStatusText(printer);
}
if (printJob != null)
{
switch (printJob.status)
@ -327,6 +332,12 @@ Rectangle
{
return "blocked-icon.svg";
}
if (printer.status === "unreachable")
{
return "";
}
if (printJob != null)
{
if(printJob.status === "queued")
@ -378,6 +389,11 @@ Rectangle
return catalog.i18nc("@label", "Not accepting print jobs");
}
if (printer.status === "unreachable")
{
return "";
}
if(printJob != null)
{
switch (printJob.status)