mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-08 07:27:29 -06:00
Update the ExtruderModel
also when the variant container has changed. Contributes to CURA-6227.
This commit is contained in:
parent
eccfebf39d
commit
3fd0561aca
1 changed files with 2 additions and 2 deletions
|
@ -134,8 +134,8 @@ class ExtrudersModel(UM.Qt.ListModel.ListModel):
|
|||
self._updateExtruders() # Since the new extruders may have different properties, update our own model.
|
||||
|
||||
def _onExtruderStackContainersChanged(self, container):
|
||||
# Update when there is an empty container or material change
|
||||
if container.getMetaDataEntry("type") == "material" or container.getMetaDataEntry("type") is None:
|
||||
# Update when there is an empty container or material or variant change
|
||||
if container.getMetaDataEntry("type") in ["material", "variant", None]:
|
||||
# The ExtrudersModel needs to be updated when the material-name or -color changes, because the user identifies extruders by material-name
|
||||
self._updateExtruders()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue