Added stubs for hasVariants & hasMaterials

CURA-1278
This commit is contained in:
Jaime van Kessel 2016-05-13 11:40:18 +02:00
parent f3384b043d
commit 6ffde62bcf
2 changed files with 18 additions and 6 deletions

View file

@ -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):