mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-07 14:04:03 -06:00
Import profiles as quality_changes profiles
CURA-2478
This commit is contained in:
parent
1cef991082
commit
3c30275201
1 changed files with 4 additions and 0 deletions
|
@ -156,6 +156,10 @@ class CuraContainerRegistry(ContainerRegistry):
|
|||
profile_name = name_seed
|
||||
new_name = container_registry.uniqueName(profile_name)
|
||||
profile.setDirty(True) # Ensure the profiles are correctly saved
|
||||
if "type" in profile.getMetaData():
|
||||
profile.setMetaDataEntry("type", "quality_changes")
|
||||
else:
|
||||
profile.addMetaDataEntry("type", "quality_changes")
|
||||
self._configureProfile(profile, profile_name)
|
||||
profile.setName(new_name)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue