mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-17 19:57:51 -06:00
Fix dirty flag of incompatible_materials
This commit is contained in:
parent
40ae75f54f
commit
0828d4f1ca
1 changed files with 2 additions and 0 deletions
|
@ -507,7 +507,9 @@ class XmlMaterialProfile(UM.Settings.InstanceContainer):
|
||||||
# Change the type of this container so it is not shown as an option in menus.
|
# Change the type of this container so it is not shown as an option in menus.
|
||||||
# This uses InstanceContainer.setMetaDataEntry because otherwise all containers that
|
# This uses InstanceContainer.setMetaDataEntry because otherwise all containers that
|
||||||
# share this basefile are also updated.
|
# share this basefile are also updated.
|
||||||
|
dirty = self.isDirty()
|
||||||
super().setMetaDataEntry("type", "incompatible_material")
|
super().setMetaDataEntry("type", "incompatible_material")
|
||||||
|
super().setDirty(dirty) # reset dirty flag after setMetaDataEntry
|
||||||
|
|
||||||
def _addSettingElement(self, builder, instance):
|
def _addSettingElement(self, builder, instance):
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue