Fixes that the firmware update kan be called from the add machine -> add UMO wizard

fixes #CURA-256
This commit is contained in:
Tamara Hogenhout 2015-10-14 16:03:29 +02:00
parent f9f0969a6d
commit ed693d57a9
2 changed files with 2 additions and 3 deletions

View File

@ -84,6 +84,7 @@ class USBPrinterManager(QObject, SignalEmitter, OutputDevicePlugin, Extension):
self._firmware_view.show()
@pyqtSlot()
def updateAllFirmware(self):
self.spawnFirmwareInterface("")
for printer_connection in self._printer_connections:

View File

@ -62,9 +62,7 @@ Item
anchors.top: parent.top
anchors.left: parent.left
text: catalog.i18nc("@action:button","Upgrade to Marlin Firmware");
onClicked: {
printer_connection.updateAllFirmware
}
onClicked: UM.USBPrinterManager.updateAllFirmware()
}
Button {
id: skipUpgradeButton