From 82d76316949545e70eac27bdb27ac598cd0c38cc Mon Sep 17 00:00:00 2001 From: Jonathan Bennett Date: Wed, 20 Nov 2019 12:27:21 -0500 Subject: [PATCH] treack refresh progress better --- .../Account/FeedWrangler/FeedWranglerAccountDelegate.swift | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Frameworks/Account/FeedWrangler/FeedWranglerAccountDelegate.swift b/Frameworks/Account/FeedWrangler/FeedWranglerAccountDelegate.swift index 9fedb8a5b..feb3517f4 100644 --- a/Frameworks/Account/FeedWrangler/FeedWranglerAccountDelegate.swift +++ b/Frameworks/Account/FeedWrangler/FeedWranglerAccountDelegate.swift @@ -60,12 +60,17 @@ final class FeedWranglerAccountDelegate: AccountDelegate { refreshProgress.addToNumberOfTasksAndRemaining(6) self.refreshCredentials(for: account) { + self.refreshProgress.completeTask() self.refreshSubscriptions(for: account) { _ in + self.refreshProgress.completeTask() self.sendArticleStatus(for: account) { + self.refreshProgress.completeTask() self.refreshArticleStatus(for: account) { + self.refreshProgress.completeTask() self.refreshArticles(for: account) { + self.refreshProgress.completeTask() self.refreshMissingArticles(for: account) { - self.refreshProgress.clear() + self.refreshProgress.completeTask() DispatchQueue.main.async { completion(.success(())) }