mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-13 08:58:59 +08:00
Importing profile now works again if profile name already existed
CURA-2478
This commit is contained in:
parent
608c442bb9
commit
bf1cfe9e7e
@ -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…
x
Reference in New Issue
Block a user