mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-05-04 02:54:00 +08:00
Correct the status message when a printer needs a config change but is unreachable
CL-508
This commit is contained in:
parent
427afdbe23
commit
eef4d61402
@ -257,6 +257,11 @@ Rectangle
|
|||||||
return catalog.i18nc("@label:status", "Disabled");
|
return catalog.i18nc("@label:status", "Disabled");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (printer.status === "unreachable")
|
||||||
|
{
|
||||||
|
return printerStatusText(printer);
|
||||||
|
}
|
||||||
|
|
||||||
if (printJob != null)
|
if (printJob != null)
|
||||||
{
|
{
|
||||||
switch (printJob.status)
|
switch (printJob.status)
|
||||||
@ -327,6 +332,12 @@ Rectangle
|
|||||||
{
|
{
|
||||||
return "blocked-icon.svg";
|
return "blocked-icon.svg";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (printer.status === "unreachable")
|
||||||
|
{
|
||||||
|
return "";
|
||||||
|
}
|
||||||
|
|
||||||
if (printJob != null)
|
if (printJob != null)
|
||||||
{
|
{
|
||||||
if(printJob.status === "queued")
|
if(printJob.status === "queued")
|
||||||
@ -378,6 +389,11 @@ Rectangle
|
|||||||
return catalog.i18nc("@label", "Not accepting print jobs");
|
return catalog.i18nc("@label", "Not accepting print jobs");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (printer.status === "unreachable")
|
||||||
|
{
|
||||||
|
return "";
|
||||||
|
}
|
||||||
|
|
||||||
if(printJob != null)
|
if(printJob != null)
|
||||||
{
|
{
|
||||||
switch (printJob.status)
|
switch (printJob.status)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user