Fixed send custom firmware

This commit is contained in:
Jaime van Kessel 2018-03-14 14:20:03 +01:00
parent ff676c98a6
commit fa9dc7a1df

View file

@ -116,7 +116,8 @@ class USBPrinterOutputDevice(PrinterOutputDevice):
@pyqtSlot(str)
def updateFirmware(self, file):
self._firmware_location = file
# the file path is qurl encoded.
self._firmware_location = file.replace("file://", "")
self.showFirmwareInterface()
self.setFirmwareUpdateState(FirmwareUpdateState.updating)
self._update_firmware_thread.start()