mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-09 14:55:03 -06:00
Importing profile now works again if profile name already existed
CURA-2478
This commit is contained in:
parent
608c442bb9
commit
bf1cfe9e7e
1 changed files with 2 additions and 5 deletions
|
@ -147,11 +147,8 @@ class CuraContainerRegistry(ContainerRegistry):
|
|||
new_name = self.createUniqueName("quality_changes", "", name_seed, catalog.i18nc("@label", "Custom profile"))
|
||||
for profile in profile_or_list:
|
||||
profile.setDirty(True) # Ensure the profiles are correctly saved
|
||||
if profile.getId() != "":
|
||||
container_registry.addContainer(profile)
|
||||
else:
|
||||
self._configureProfile(profile, name_seed)
|
||||
profile.setName(new_name)
|
||||
self._configureProfile(profile, name_seed)
|
||||
profile.setName(new_name)
|
||||
|
||||
if len(profile_or_list) == 1:
|
||||
return {"status": "ok", "message": catalog.i18nc("@info:status", "Successfully imported profile {0}", profile_or_list[0].getName())}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue