parent
9e9cd018eb
commit
b68fb21652
|
@ -263,13 +263,13 @@ extension ProfileManager {
|
||||||
// profile that has not been persisted yet
|
// profile that has not been persisted yet
|
||||||
//
|
//
|
||||||
if setAsCurrent {
|
if setAsCurrent {
|
||||||
if #available(iOS 15, *) {
|
|
||||||
pendingProfiles[copy.id] = copy
|
pendingProfiles[copy.id] = copy
|
||||||
|
if #available(iOS 15, *) {
|
||||||
currentProfileId = copy.id
|
currentProfileId = copy.id
|
||||||
pendingProfiles.removeValue(forKey: copy.id)
|
|
||||||
} else {
|
} else {
|
||||||
setCurrentProfile(copy)
|
setCurrentProfile(copy)
|
||||||
}
|
}
|
||||||
|
pendingProfiles.removeValue(forKey: copy.id)
|
||||||
} else {
|
} else {
|
||||||
strategy.saveProfile(copy)
|
strategy.saveProfile(copy)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue