passepartout-apple/PassepartoutCore/Sources
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
..
OpenVPNAppExtension Rewrite app in SwiftUI 2022-04-12 15:12:45 +02:00
PassepartoutCore Bind navigation to ProfileManager directly 2022-05-03 18:35:17 +02:00
PassepartoutProfiles Set duplicate as current inside ProfileManager 2022-05-03 18:35:19 +02:00
PassepartoutProviders Test update/delete on merge provider index 2022-04-26 18:56:55 +02:00
PassepartoutServices Attempt beta release 2022-05-01 20:44:17 +02:00
PassepartoutUtils Make App/Core iOS/Catalyst only 2022-04-19 15:56:41 +02:00
WireGuardAppExtension Rewrite app in SwiftUI 2022-04-12 15:12:45 +02:00