Only allow pre-heating if authenticated

Contributes to issue CURA-3161.
This commit is contained in:
Ghostkeeper 2017-02-08 14:01:07 +01:00
parent bcab0d7be9
commit 4013b50063
No known key found for this signature in database
GPG key ID: C5F96EE2BC0F7E75

View file

@ -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.