Don't use material manager to find or remove materials

That remove function in the material manager was very weird...

Contributes to issue CURA-6776.
This commit is contained in:
Ghostkeeper 2019-09-19 17:01:13 +02:00
parent cc9115b3d3
commit 12043df367
No known key found for this signature in database
GPG key ID: 86BEF881AE2CF276
2 changed files with 5 additions and 20 deletions

View file

@ -255,7 +255,7 @@ class MaterialManager(QObject):
for result in results:
container_registry.removeContainer(result.getMetaDataEntry("id", ""))
@pyqtSlot("QVariant", result=bool)
@pyqtSlot("QVariant", result = bool)
def canMaterialBeRemoved(self, material_node: "MaterialNode"):
# Check if the material is active in any extruder train. In that case, the material shouldn't be removed!
# In the future we might enable this again, but right now, it's causing a ton of issues if we do (since it