mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 23:17:32 -06:00
Added stubs for hasVariants & hasMaterials
CURA-1278
This commit is contained in:
parent
f3384b043d
commit
6ffde62bcf
2 changed files with 18 additions and 6 deletions
|
@ -113,6 +113,17 @@ class MachineManagerModel(QObject):
|
|||
def removeMachine(self, machine_id):
|
||||
ContainerRegistry.getInstance().removeContainer(machine_id)
|
||||
|
||||
@pyqtProperty(bool)
|
||||
def hasMaterials(self):
|
||||
# Todo: Still hardcoded.
|
||||
# We should implement this properly when it's clear how a machine notifies us if it can handle materials
|
||||
return True
|
||||
|
||||
@pyqtProperty(bool)
|
||||
def hasVariants(self):
|
||||
# Todo: Still hardcoded.
|
||||
# We should implement this properly when it's clear how a machine notifies us if it can handle variants
|
||||
return True
|
||||
|
||||
|
||||
def createMachineManagerModel(engine, script_engine):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue