passepartout-apple/Passepartout
Davide De Rosa 4cb18965c9 Set duplicate as current inside ProfileManager
When setting duplicate as current, batch save original profile and
duplicate in a single call via profilesToSave. This is to avoid a
double call to willUpdateProfiles() when saving Core Data context.

In order to set current profile to one that has not been persisted
yet (the duplicate), we need to resort to a pendingProfiles map
where to look the duplicate up when setting currentProfileId.

Either way, iOS 14 cannot handle updating a "hot" change in a
presented NavigationLink. Changing currentProfileId binding while
in ProfileView messes up navigation completely (multiple push and
pop events). Avoid.
2022-05-03 18:35:19 +02:00
..
App Set duplicate as current inside ProfileManager 2022-05-03 18:35:19 +02:00
Shared Rewrite app in SwiftUI 2022-04-12 15:12:45 +02:00
Tunnel Enable "DNS Settings" capability 2022-05-02 00:04:56 +02:00