Browse Source

Fixed send custom firmware

Jaime van Kessel 7 years ago
parent
commit
fa9dc7a1df
1 changed files with 2 additions and 1 deletions
  1. 2 1
      plugins/USBPrinting/USBPrinterOutputDevice.py

+ 2 - 1
plugins/USBPrinting/USBPrinterOutputDevice.py

@@ -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()