mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 06:57:28 -06:00
Make verified material containers read-only, even for variants.
part CURA-6856
This commit is contained in:
parent
5908ff60ee
commit
aca7f4551e
1 changed files with 2 additions and 0 deletions
|
@ -720,6 +720,8 @@ class XmlMaterialProfile(InstanceContainer):
|
||||||
new_hotend_material._dirty = False
|
new_hotend_material._dirty = False
|
||||||
|
|
||||||
if is_new_material:
|
if is_new_material:
|
||||||
|
if ContainerRegistry.getInstance().isReadOnly(self.getId()):
|
||||||
|
ContainerRegistry.getInstance().setReadOnlyExplicitly(new_hotend_material.getId())
|
||||||
containers_to_add.append(new_hotend_material)
|
containers_to_add.append(new_hotend_material)
|
||||||
|
|
||||||
# there is only one ID for a machine. Once we have reached here, it means we have already found
|
# there is only one ID for a machine. Once we have reached here, it means we have already found
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue