mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-23 14:44:13 -06:00
Settings now point to the right extruder stack
CURA-1758
This commit is contained in:
parent
dd78561e25
commit
4346d5a233
2 changed files with 41 additions and 1 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue