diff --git a/PassepartoutCore/Sources/PassepartoutProfiles/Managers/ProfileManager.swift b/PassepartoutCore/Sources/PassepartoutProfiles/Managers/ProfileManager.swift index ab16e98a..0c93f357 100644 --- a/PassepartoutCore/Sources/PassepartoutProfiles/Managers/ProfileManager.swift +++ b/PassepartoutCore/Sources/PassepartoutProfiles/Managers/ProfileManager.swift @@ -263,13 +263,13 @@ extension ProfileManager { // profile that has not been persisted yet // if setAsCurrent { + pendingProfiles[copy.id] = copy if #available(iOS 15, *) { - pendingProfiles[copy.id] = copy currentProfileId = copy.id - pendingProfiles.removeValue(forKey: copy.id) } else { setCurrentProfile(copy) } + pendingProfiles.removeValue(forKey: copy.id) } else { strategy.saveProfile(copy) }