mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 07:38:58 +08:00
Set the ID of the profile object during import; ensure it is unique.
Contributes to CURA-1667 Profile import/export
This commit is contained in:
parent
38eec41162
commit
d74cecd9db
@ -144,6 +144,7 @@ class CuraContainerRegistry(ContainerRegistry):
|
||||
new_name = self.createUniqueName("quality", "", os.path.splitext(os.path.basename(file_name))[0],
|
||||
catalog.i18nc("@label", "Custom profile"))
|
||||
profile.setName(new_name)
|
||||
profile._id = new_name
|
||||
|
||||
if self._machineHasOwnQualities():
|
||||
profile.setDefinition(self._activeDefinition())
|
||||
|
Loading…
x
Reference in New Issue
Block a user