Hide profiles until remote repository is ready

Regression from #1029
This commit is contained in:
Davide 2024-12-20 10:37:55 +01:00
parent 42bf392fff
commit 59e4e2e4ab
No known key found for this signature in database
GPG Key ID: A48836171C759F5E
2 changed files with 5 additions and 3 deletions

View File

@ -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]

View File

@ -108,7 +108,8 @@ extension AppContext {
model: cdRemoteModel,
observingResults: false
),
mirrorsRemoteRepository: dependencies.mirrorsRemoteRepository
mirrorsRemoteRepository: dependencies.mirrorsRemoteRepository,
readyAfterRemote: true
)
let tunnel = ExtendedTunnel(