From 4013b500632f1cca1342910ec9ecba9afacdc484 Mon Sep 17 00:00:00 2001 From: Ghostkeeper Date: Wed, 8 Feb 2017 14:01:07 +0100 Subject: [PATCH] Only allow pre-heating if authenticated Contributes to issue CURA-3161. --- resources/qml/PrintMonitor.qml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/resources/qml/PrintMonitor.qml b/resources/qml/PrintMonitor.qml index 90111265f0..b34d1af252 100644 --- a/resources/qml/PrintMonitor.qml +++ b/resources/qml/PrintMonitor.qml @@ -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.