mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 05:55:53 +08:00
Only allow pre-heating if authenticated
Contributes to issue CURA-3161.
This commit is contained in:
parent
bcab0d7be9
commit
4013b50063
@ -337,6 +337,10 @@ Column
|
|||||||
{
|
{
|
||||||
return false; //Can't preheat if not connected.
|
return false; //Can't preheat if not connected.
|
||||||
}
|
}
|
||||||
|
if (!connectedPrinter.acceptsCommands)
|
||||||
|
{
|
||||||
|
return false; //Not allowed to do anything.
|
||||||
|
}
|
||||||
if (connectedPrinter.jobState == "printing" || connectedPrinter.jobState == "pre_print" || connectedPrinter.jobState == "resuming" || connectedPrinter.jobState == "error" || connectedPrinter.jobState == "offline")
|
if (connectedPrinter.jobState == "printing" || connectedPrinter.jobState == "pre_print" || connectedPrinter.jobState == "resuming" || connectedPrinter.jobState == "error" || connectedPrinter.jobState == "offline")
|
||||||
{
|
{
|
||||||
return false; //Printer is in a state where it can't react to pre-heating.
|
return false; //Printer is in a state where it can't react to pre-heating.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user