From bf3c50c34805f965248906e1c51e36d0a06043df Mon Sep 17 00:00:00 2001 From: Davide Date: Wed, 23 Oct 2024 23:04:29 +0200 Subject: [PATCH] Do not force refresh infrastructure Fixes #704 --- .../AppUI/Views/Provider/ProviderContentModifier.swift | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Passepartout/Library/Sources/AppUI/Views/Provider/ProviderContentModifier.swift b/Passepartout/Library/Sources/AppUI/Views/Provider/ProviderContentModifier.swift index 73eb06d8..d56cd608 100644 --- a/Passepartout/Library/Sources/AppUI/Views/Provider/ProviderContentModifier.swift +++ b/Passepartout/Library/Sources/AppUI/Views/Provider/ProviderContentModifier.swift @@ -150,13 +150,9 @@ private extension ProviderContentModifier { private extension ProviderContentModifier { func loadCurrentProvider() { Task { + await refreshIndex() if let providerId { - async let index = await refreshIndex() - async let provider = await refreshInfrastructure(for: providerId) - _ = await (index, provider) onSelectProvider(providerManager, providerId, true) - } else { - await refreshIndex() } } }