mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-07 05:53:59 -06:00
Only allow pre-heating if authenticated
Contributes to issue CURA-3161.
This commit is contained in:
parent
bcab0d7be9
commit
4013b50063
1 changed files with 4 additions and 0 deletions
|
@ -337,6 +337,10 @@ Column
|
|||
{
|
||||
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")
|
||||
{
|
||||
return false; //Printer is in a state where it can't react to pre-heating.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue