treack refresh progress better
This commit is contained in:
parent
ac33bf982e
commit
82d7631694
|
@ -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(()))
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue