Skip to content

Commit

Permalink
Hide profiles until remote repository is ready
Browse files Browse the repository at this point in the history
Regression from #1029
  • Loading branch information
keeshux committed Dec 20, 2024
1 parent 42bf392 commit 59e4e2e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 3 additions & 2 deletions Library/Sources/CommonLibrary/Business/ProfileManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -136,7 +137,7 @@ public final class ProfileManager: ObservableObject {
allRemoteProfiles = [:]
filteredProfiles = []
requiredFeatures = [:]
if mirrorsRemoteRepository {
if readyAfterRemote {
waitingObservers = [.local, .remote]
} else {
waitingObservers = [.local]
Expand Down
3 changes: 2 additions & 1 deletion Passepartout/App/Context/AppContext+Shared.swift
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,8 @@ extension AppContext {
model: cdRemoteModel,
observingResults: false
),
mirrorsRemoteRepository: dependencies.mirrorsRemoteRepository
mirrorsRemoteRepository: dependencies.mirrorsRemoteRepository,
readyAfterRemote: true
)

let tunnel = ExtendedTunnel(
Expand Down

0 comments on commit 59e4e2e

Please sign in to comment.