mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-18 20:28:01 -06:00
printertype Parsing function made static
CURA-11138
This commit is contained in:
parent
c2e2511fdc
commit
39ec9c9279
2 changed files with 5 additions and 12 deletions
|
@ -415,9 +415,10 @@ class NetworkedPrinterOutputDevice(PrinterOutputDevice):
|
|||
|
||||
@pyqtProperty(str, constant = True)
|
||||
def printerType(self) -> str:
|
||||
return self.getPrinterTypeIfMakerBot(self._properties.get(b"printer_type", b"Unknown").decode("utf-8"))
|
||||
return NetworkedPrinterOutputDevice.getPrinterTypeIfMakerBot(self._properties.get(b"printer_type", b"Unknown").decode("utf-8"))
|
||||
|
||||
def getPrinterTypeIfMakerBot(self, printer_type):
|
||||
@staticmethod
|
||||
def getPrinterTypeIfMakerBot(printer_type):
|
||||
method_printer_type = {
|
||||
"fire_e": "ultimaker_method",
|
||||
"lava_f": "ultimaker_methodx",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue