Display a message that there are no connected printers when trying to update firmware

Contributes to CURA-274
This commit is contained in:
Arjen Hiemstra 2015-10-30 13:46:01 +01:00
parent 37c977cea6
commit 67e00221eb

View file

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