mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 17:15:56 +08:00
Importing profile now works again if profile name already existed
CURA-2478
This commit is contained in:
parent
608c442bb9
commit
bf1cfe9e7e
@ -147,9 +147,6 @@ class CuraContainerRegistry(ContainerRegistry):
|
|||||||
new_name = self.createUniqueName("quality_changes", "", name_seed, catalog.i18nc("@label", "Custom profile"))
|
new_name = self.createUniqueName("quality_changes", "", name_seed, catalog.i18nc("@label", "Custom profile"))
|
||||||
for profile in profile_or_list:
|
for profile in profile_or_list:
|
||||||
profile.setDirty(True) # Ensure the profiles are correctly saved
|
profile.setDirty(True) # Ensure the profiles are correctly saved
|
||||||
if profile.getId() != "":
|
|
||||||
container_registry.addContainer(profile)
|
|
||||||
else:
|
|
||||||
self._configureProfile(profile, name_seed)
|
self._configureProfile(profile, name_seed)
|
||||||
profile.setName(new_name)
|
profile.setName(new_name)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user