From 877032584e5fa0e3d0b64dd47b63e45bc95ce511 Mon Sep 17 00:00:00 2001 From: Ghostkeeper Date: Tue, 20 Mar 2018 13:22:18 +0100 Subject: [PATCH] Correct documentation This code was obviously copied from the pre-heat functionality. Let's fix the code duplication next as far as possible. Contributes to issue CURA-4879. --- resources/qml/PrinterOutput/ManualPrinterControl.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/qml/PrinterOutput/ManualPrinterControl.qml b/resources/qml/PrinterOutput/ManualPrinterControl.qml index 777213811e..70961a2eb2 100644 --- a/resources/qml/PrinterOutput/ManualPrinterControl.qml +++ b/resources/qml/PrinterOutput/ManualPrinterControl.qml @@ -460,13 +460,13 @@ Item visible: printerModel != null ? printerModel.canSendRawGcode: true enabled: { if (printerModel == null) { - return false // Can't preheat if not connected + return false // Can't send custom commands 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 == "pausing" || connectedPrinter.jobState == "paused" || 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 custom commands. } return true }