mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 06:57:28 -06:00
WIP: Disable unknown printer type buttons
This commit is contained in:
parent
2b0e9ea439
commit
b3621bae84
4 changed files with 30 additions and 4 deletions
|
@ -62,6 +62,10 @@ class DiscoveredPrinter(QObject):
|
|||
readable_type = catalog.i18nc("@label", "Unknown")
|
||||
return readable_type
|
||||
|
||||
@pyqtProperty(bool, notify = machineTypeChanged)
|
||||
def is_unknown_machine_type(self) -> bool:
|
||||
return self.readable_machine_type.lower() == "unknown"
|
||||
|
||||
@pyqtProperty(QObject, constant = True)
|
||||
def device(self):
|
||||
return self._device
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue