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
}
let copy = source
.renamedUniquely(withLastUpdate: false)
.withNewId()
.renamedUniquely(withLastUpdate: false)
saveProfile(copy, isActive: nil)
return copy