Only list extruders in extruder manager

Let the extruders themselves take care of which profiles are attached to each.

Contributes to issues CURA-1278 and CURA-351.
This commit is contained in:
Ghostkeeper 2016-06-01 14:54:30 +02:00
parent 377fed206c
commit 60a71fcc33
No known key found for this signature in database
GPG key ID: 701948C5954A7385

View file

@ -18,9 +18,7 @@ from UM.Settings.ContainerRegistry import ContainerRegistry #Finding containers
class ExtruderManager: class ExtruderManager:
## Registers listeners and such to listen to changes to the extruders. ## Registers listeners and such to listen to changes to the extruders.
def __init__(self): def __init__(self):
self._extruderDefinitions = [] #Extruder definitions for the current machine. self._extruders = [] #Extruders for the current machine.
self._nozzles = {} #Nozzle instances for each extruder.
self._extruderTrains = [] #Container stacks for each of the extruder trains.
Application.getInstance().getGlobalContainerStack().containersChanged.connect(self._reloadExtruders) #When the current machine changes, we need to reload all extruders belonging to the new machine. Application.getInstance().getGlobalContainerStack().containersChanged.connect(self._reloadExtruders) #When the current machine changes, we need to reload all extruders belonging to the new machine.