mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-10 04:49:01 +08:00
Make verified material containers read-only, even for variants.
part CURA-6856
This commit is contained in:
parent
5908ff60ee
commit
aca7f4551e
@ -720,6 +720,8 @@ class XmlMaterialProfile(InstanceContainer):
|
||||
new_hotend_material._dirty = False
|
||||
|
||||
if is_new_material:
|
||||
if ContainerRegistry.getInstance().isReadOnly(self.getId()):
|
||||
ContainerRegistry.getInstance().setReadOnlyExplicitly(new_hotend_material.getId())
|
||||
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user