mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-23 14:44:13 -06:00
Method printers method, methodx, methodxl read from cloud
CURA-11138
This commit is contained in:
parent
15e7bb1f07
commit
cf78ae0dca
4 changed files with 38 additions and 9 deletions
|
@ -415,7 +415,17 @@ class NetworkedPrinterOutputDevice(PrinterOutputDevice):
|
|||
|
||||
@pyqtProperty(str, constant = True)
|
||||
def printerType(self) -> str:
|
||||
return self._properties.get(b"printer_type", b"Unknown").decode("utf-8")
|
||||
return self.getPrinterType(self._properties.get(b"printer_type", b"Unknown").decode("utf-8"))
|
||||
|
||||
def getPrinterTypeIfMakerBot(printer_type):
|
||||
method_printer_type = {
|
||||
"fire_e": "ultimaker_method",
|
||||
"lava_f": "ultimaker_methodx",
|
||||
"magma_10": "ultimaker_methodxl"
|
||||
}
|
||||
if printer_type in method_printer_type:
|
||||
return method_printer_type[printer_type]
|
||||
return printer_type
|
||||
|
||||
@pyqtProperty(str, constant = True)
|
||||
def ipAddress(self) -> str:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue