diff --git a/Library/Sources/CommonLibrary/Business/ProfileManager.swift b/Library/Sources/CommonLibrary/Business/ProfileManager.swift index 048e47df..fc8a4b3a 100644 --- a/Library/Sources/CommonLibrary/Business/ProfileManager.swift +++ b/Library/Sources/CommonLibrary/Business/ProfileManager.swift @@ -125,7 +125,8 @@ public final class ProfileManager: ObservableObject { processor: ProfileProcessor? = nil, repository: ProfileRepository, backupRepository: ProfileRepository? = nil, - mirrorsRemoteRepository: Bool = false + mirrorsRemoteRepository: Bool = false, + readyAfterRemote: Bool = false ) { self.processor = processor self.repository = repository @@ -136,7 +137,7 @@ public final class ProfileManager: ObservableObject { allRemoteProfiles = [:] filteredProfiles = [] requiredFeatures = [:] - if mirrorsRemoteRepository { + if readyAfterRemote { waitingObservers = [.local, .remote] } else { waitingObservers = [.local] diff --git a/Passepartout/App/Context/AppContext+Shared.swift b/Passepartout/App/Context/AppContext+Shared.swift index a38d67c1..85b60514 100644 --- a/Passepartout/App/Context/AppContext+Shared.swift +++ b/Passepartout/App/Context/AppContext+Shared.swift @@ -108,7 +108,8 @@ extension AppContext { model: cdRemoteModel, observingResults: false ), - mirrorsRemoteRepository: dependencies.mirrorsRemoteRepository + mirrorsRemoteRepository: dependencies.mirrorsRemoteRepository, + readyAfterRemote: true ) let tunnel = ExtendedTunnel(