From beea9caf04962517b67faf13a609a9f518a2df4d Mon Sep 17 00:00:00 2001 From: Jaime van Kessel Date: Wed, 22 Feb 2017 09:43:24 +0100 Subject: [PATCH] Clarified unable to print over USB message for ulti-gcode --- plugins/USBPrinting/USBPrinterOutputDevice.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/plugins/USBPrinting/USBPrinterOutputDevice.py b/plugins/USBPrinting/USBPrinterOutputDevice.py index 754053306a..f7c7f2551f 100644 --- a/plugins/USBPrinting/USBPrinterOutputDevice.py +++ b/plugins/USBPrinting/USBPrinterOutputDevice.py @@ -445,9 +445,13 @@ class USBPrinterOutputDevice(PrinterOutputDevice): # is ignored. def requestWrite(self, nodes, file_name = None, filter_by_machine = False, file_handler = None): container_stack = Application.getInstance().getGlobalContainerStack() - if container_stack.getProperty("machine_gcode_flavor", "value") == "UltiGCode" or not container_stack.getMetaDataEntry("supports_usb_connection"): - self._error_message = Message(catalog.i18nc("@info:status", - "Unable to start a new job because the printer does not support usb printing.")) + + if container_stack.getProperty("machine_gcode_flavor", "value") == "UltiGCode": + self._error_message = Message(catalog.i18nc("@info:status", "This printer does not support USB printing because it uses UltiGCode flavor.")) + self._error_message.show() + return + elif not container_stack.getMetaDataEntry("supports_usb_connection"): + self._error_message = Message(catalog.i18nc("@info:status", "Unable to start a new job because the printer does not support usb printing.")) self._error_message.show() return