mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-11 08:47:50 -06:00
Remove translation for Unknown printer type
CURA-6449
This commit is contained in:
parent
588dd6cd78
commit
26205fbdce
1 changed files with 2 additions and 2 deletions
|
@ -61,12 +61,12 @@ class DiscoveredPrinter(QObject):
|
||||||
from cura.CuraApplication import CuraApplication
|
from cura.CuraApplication import CuraApplication
|
||||||
readable_type = CuraApplication.getInstance().getMachineManager().getMachineTypeNameFromId(self._machine_type)
|
readable_type = CuraApplication.getInstance().getMachineManager().getMachineTypeNameFromId(self._machine_type)
|
||||||
if not readable_type:
|
if not readable_type:
|
||||||
readable_type = catalog.i18nc("@label", "Unknown")
|
readable_type = "unknown"
|
||||||
return readable_type
|
return readable_type
|
||||||
|
|
||||||
@pyqtProperty(bool, notify = machineTypeChanged)
|
@pyqtProperty(bool, notify = machineTypeChanged)
|
||||||
def isUnknownMachineType(self) -> bool:
|
def isUnknownMachineType(self) -> bool:
|
||||||
return self.readableMachineType == catalog.i18nc("@label", "Unknown")
|
return self.readableMachineType == "unknown"
|
||||||
|
|
||||||
@pyqtProperty(QObject, constant = True)
|
@pyqtProperty(QObject, constant = True)
|
||||||
def device(self) -> "NetworkedPrinterOutputDevice":
|
def device(self) -> "NetworkedPrinterOutputDevice":
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue