Fix cannot duplicate same profile more than once

This commit is contained in:
Davide De Rosa 2022-04-29 00:40:34 +02:00
parent fc784ffeb1
commit 17198e53eb
1 changed files with 1 additions and 1 deletions

View File

@ -238,8 +238,8 @@ extension ProfileManager {
return nil return nil
} }
let copy = source let copy = source
.renamedUniquely(withLastUpdate: false)
.withNewId() .withNewId()
.renamedUniquely(withLastUpdate: false)
saveProfile(copy, isActive: nil) saveProfile(copy, isActive: nil)
return copy return copy