mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-10 23:35:07 -06:00
Fix removeMaterial.
The base_file must be removed first, or it gets loaded halfway during remove containers. Contributes to issue CURA-4243.
This commit is contained in:
parent
7d24933835
commit
eb171231c2
3 changed files with 10 additions and 2 deletions
|
@ -118,7 +118,7 @@ class ContainerManager(QObject):
|
|||
def removeContainer(self, container_id):
|
||||
containers = self._container_registry.findContainers(id = container_id)
|
||||
if not containers:
|
||||
Logger.log("w", "Could remove container %s because it was not found.", container_id)
|
||||
Logger.log("w", "Could not remove container %s because it was not found.", container_id)
|
||||
return False
|
||||
|
||||
self._container_registry.removeContainer(containers[0].getId())
|
||||
|
|
|
@ -32,5 +32,6 @@ class MaterialsModel(InstanceContainersModel):
|
|||
result.append(item["metadata"]["material"])
|
||||
result.append(item["metadata"]["name"])
|
||||
result.append(item["metadata"]["color_name"])
|
||||
result.append(item["metadata"]["id"])
|
||||
result.extend(super()._sortKey(item))
|
||||
return result
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue