From 17198e53ebfc682defdd195ff7e1ba459770b59e Mon Sep 17 00:00:00 2001 From: Davide De Rosa Date: Fri, 29 Apr 2022 00:40:34 +0200 Subject: [PATCH] Fix cannot duplicate same profile more than once --- .../Sources/PassepartoutProfiles/Managers/ProfileManager.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PassepartoutCore/Sources/PassepartoutProfiles/Managers/ProfileManager.swift b/PassepartoutCore/Sources/PassepartoutProfiles/Managers/ProfileManager.swift index 42056d15..8056c642 100644 --- a/PassepartoutCore/Sources/PassepartoutProfiles/Managers/ProfileManager.swift +++ b/PassepartoutCore/Sources/PassepartoutProfiles/Managers/ProfileManager.swift @@ -238,8 +238,8 @@ extension ProfileManager { return nil } let copy = source - .renamedUniquely(withLastUpdate: false) .withNewId() + .renamedUniquely(withLastUpdate: false) saveProfile(copy, isActive: nil) return copy