mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-24 23:23:57 -06:00
Extruders model now listens to global container changed, instead of definition changed.
This solves issue where switching between machines with the same definition did not cause extruder materials to be updated CURA-2493
This commit is contained in:
parent
3e6cbd58f1
commit
513c05b78c
1 changed files with 2 additions and 2 deletions
|
@ -50,9 +50,9 @@ class ExtrudersModel(UM.Qt.ListModel.ListModel):
|
|||
|
||||
self._active_extruder_stack = None
|
||||
|
||||
#Listen to changes.
|
||||
# Listen to changes.
|
||||
UM.Application.getInstance().globalContainerStackChanged.connect(self._updateExtruders)
|
||||
manager = ExtruderManager.getInstance()
|
||||
manager.globalContainerStackDefinitionChanged.connect(self._updateExtruders) #When the global stack changes to a printer with different extruders.
|
||||
|
||||
self._updateExtruders()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue