Settings now point to the right extruder stack

CURA-1758
This commit is contained in:
Jaime van Kessel 2016-07-21 20:54:02 +02:00
parent dd78561e25
commit 4346d5a233
2 changed files with 41 additions and 1 deletions

View file

@ -47,6 +47,10 @@ class ExtruderManager(QObject):
return 0 # No active machine, so no extruders.
return len(self._extruder_trains[UM.Application.getInstance().getGlobalContainerStack().getId()])
@pyqtProperty("QVariantList", notify=extrudersChanged)
def extruderIds(self):
return [self._extruder_trains[UM.Application.getInstance().getGlobalContainerStack().getId()][extruder].getId() for extruder in self._extruder_trains[UM.Application.getInstance().getGlobalContainerStack().getId()]]
## The instance of the singleton pattern.
#
# It's None if the extruder manager hasn't been created yet.