diff options
author | Remco Burema <r.burema@ultimaker.com> | 2019-10-31 21:01:23 +0300 |
---|---|---|
committer | Remco Burema <r.burema@ultimaker.com> | 2019-10-31 21:01:23 +0300 |
commit | aca7f4551e84b4a53e7250844942e51c552416c9 (patch) | |
tree | ce832acce071711f737eedf8b3d8aaa068dd0bbc /plugins/XmlMaterialProfile/XmlMaterialProfile.py | |
parent | 5908ff60eeec16b135b2f1b401bda26d32e089a4 (diff) |
Make verified material containers read-only, even for variants.
part CURA-6856
Diffstat (limited to 'plugins/XmlMaterialProfile/XmlMaterialProfile.py')
-rw-r--r-- | plugins/XmlMaterialProfile/XmlMaterialProfile.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/XmlMaterialProfile/XmlMaterialProfile.py b/plugins/XmlMaterialProfile/XmlMaterialProfile.py index 093638d594..3812c5255c 100644 --- a/plugins/XmlMaterialProfile/XmlMaterialProfile.py +++ b/plugins/XmlMaterialProfile/XmlMaterialProfile.py @@ -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 |