treack refresh progress better

This commit is contained in:
Jonathan Bennett 2019-11-20 12:27:21 -05:00
parent ac33bf982e
commit 82d7631694
1 changed files with 6 additions and 1 deletions

View File

@ -60,12 +60,17 @@ final class FeedWranglerAccountDelegate: AccountDelegate {
refreshProgress.addToNumberOfTasksAndRemaining(6) refreshProgress.addToNumberOfTasksAndRemaining(6)
self.refreshCredentials(for: account) { self.refreshCredentials(for: account) {
self.refreshProgress.completeTask()
self.refreshSubscriptions(for: account) { _ in self.refreshSubscriptions(for: account) { _ in
self.refreshProgress.completeTask()
self.sendArticleStatus(for: account) { self.sendArticleStatus(for: account) {
self.refreshProgress.completeTask()
self.refreshArticleStatus(for: account) { self.refreshArticleStatus(for: account) {
self.refreshProgress.completeTask()
self.refreshArticles(for: account) { self.refreshArticles(for: account) {
self.refreshProgress.completeTask()
self.refreshMissingArticles(for: account) { self.refreshMissingArticles(for: account) {
self.refreshProgress.clear() self.refreshProgress.completeTask()
DispatchQueue.main.async { DispatchQueue.main.async {
completion(.success(())) completion(.success(()))
} }