From 67e00221ebf0f2be3a24a0746be8092b5ed654df Mon Sep 17 00:00:00 2001 From: Arjen Hiemstra Date: Fri, 30 Oct 2015 13:46:01 +0100 Subject: [PATCH] Display a message that there are no connected printers when trying to update firmware Contributes to CURA-274 --- plugins/USBPrinting/USBPrinterManager.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugins/USBPrinting/USBPrinterManager.py b/plugins/USBPrinting/USBPrinterManager.py index 9d9b0b4a02..c1308197f2 100644 --- a/plugins/USBPrinting/USBPrinterManager.py +++ b/plugins/USBPrinting/USBPrinterManager.py @@ -95,6 +95,10 @@ class USBPrinterManager(QObject, SignalEmitter, OutputDevicePlugin, Extension): @pyqtSlot() def updateAllFirmware(self): + if not self._printer_connections: + Message("Cannot update firmware, there were no connected printers found.").show() + return + self.spawnFirmwareInterface("") for printer_connection in self._printer_connections: try: