mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06:00
fix for functions
CURA-11138
This commit is contained in:
parent
cf78ae0dca
commit
37e236405a
2 changed files with 3 additions and 3 deletions
|
@ -415,9 +415,9 @@ class NetworkedPrinterOutputDevice(PrinterOutputDevice):
|
|||
|
||||
@pyqtProperty(str, constant = True)
|
||||
def printerType(self) -> str:
|
||||
return self.getPrinterType(self._properties.get(b"printer_type", b"Unknown").decode("utf-8"))
|
||||
return self.getPrinterTypeIfMakerBot(self._properties.get(b"printer_type", b"Unknown").decode("utf-8"))
|
||||
|
||||
def getPrinterTypeIfMakerBot(printer_type):
|
||||
def getPrinterTypeIfMakerBot(self, printer_type):
|
||||
method_printer_type = {
|
||||
"fire_e": "ultimaker_method",
|
||||
"lava_f": "ultimaker_methodx",
|
||||
|
|
|
@ -52,7 +52,7 @@ class CloudClusterResponse(BaseModel):
|
|||
"""
|
||||
return str({k: v for k, v in self.__dict__.items() if k in {"cluster_id", "host_guid", "host_name", "status", "is_online", "host_version", "host_internal_ip", "friendly_name", "printer_type", "printer_count", "capabilities"}})
|
||||
|
||||
def getPrinterTypeIfMakerBot(printer_type):
|
||||
def getPrinterTypeIfMakerBot(self, printer_type):
|
||||
method_printer_type = {
|
||||
"fire_e": "ultimaker_method",
|
||||
"lava_f": "ultimaker_methodx",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue