Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion iosApp/iosApp/ContentView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -887,8 +887,8 @@ struct ContentView: View {
requiresPIN: profile.hasPin
)
StartupContentPrefetcher.prefetchAuthenticatedContent()
await PlayerSettings.shared.refreshFromServer()
router.resetToHome()
await PlayerSettings.shared.refreshFromServer()
print("[DebugAutoLogin] signed in and selected profile")
} catch {
print("[DebugAutoLogin] failed: \(error)")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,11 @@ class ProfileSelectionViewModel {
requiresPIN: profile.hasPin
)
StartupContentPrefetcher.prefetchAuthenticatedContent()
await PlayerSettings.shared.refreshFromServer()
// Change screens before the settings request suspends. The refresh
// applies this profile's cached playback quality synchronously,
// then updates it from the server while Home is already visible.
router.resetToHome()
await PlayerSettings.shared.refreshFromServer()
} catch {
self.error = ErrorState(error)
}
Expand All @@ -77,8 +80,8 @@ class ProfileSelectionViewModel {
requiresPIN: profile.hasPin
)
StartupContentPrefetcher.prefetchAuthenticatedContent()
await PlayerSettings.shared.refreshFromServer()
router.resetToHome()
await PlayerSettings.shared.refreshFromServer()
}

/// The picker itself has no active profile, but the server requires the
Expand Down