Limits updating sources to app launch and manually via pull-to-refresh

This commit is contained in:
Riley Testut
2023-12-07 17:30:46 -06:00
parent ff8cd234c1
commit 2b2ad176e4
4 changed files with 157 additions and 171 deletions

View File

@@ -85,6 +85,11 @@ extension LaunchViewController
AppManager.shared.updatePatronsIfNeeded()
PatreonAPI.shared.refreshPatreonAccount()
AppManager.shared.updateAllSources { result in
guard case .failure(let error) = result else { return }
Logger.main.error("Failed to update sources on launch. \(error.localizedDescription, privacy: .public)")
}
self.updateKnownSources()
WidgetCenter.shared.reloadAllTimelines()