passepartout-apple/PassepartoutCore/Sources/PassepartoutProfiles
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
..
DataModels Hack around missing .ethernet on Catalyst 2022-04-19 15:56:41 +02:00
Extensions Duplicate profile from context menu 2022-04-26 22:39:47 +02:00
Managers Set duplicate as current inside ProfileManager 2022-05-03 18:35:19 +02:00
Models Fix handling of non-ready profiles 2022-05-03 15:54:19 +02:00
Pickers Make network settings consistent 2022-04-14 07:43:44 +02:00
Profiles.xcdatamodeld/Model.xcdatamodel Rewrite app in SwiftUI 2022-04-12 15:12:45 +02:00
Repositories Review a bit about duplicates handling 2022-04-16 11:27:31 +02:00
PassepartoutProfiles.swift Rewrite app in SwiftUI 2022-04-12 15:12:45 +02:00