mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-02 20:52:20 -07:00
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:
parent
cc9115b3d3
commit
12043df367
2 changed files with 5 additions and 20 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue