Fix CloudKit feed double counting in progress indicator.
This commit is contained in:
parent
eeb7b518a8
commit
19a6ff883d
|
@ -569,7 +569,6 @@ private extension CloudKitAccountDelegate {
|
||||||
|
|
||||||
for webFeed in webFeeds {
|
for webFeed in webFeeds {
|
||||||
if let components = URLComponents(string: webFeed.url), let feedProvider = FeedProviderManager.shared.best(for: components, with: webFeed.username) {
|
if let components = URLComponents(string: webFeed.url), let feedProvider = FeedProviderManager.shared.best(for: components, with: webFeed.username) {
|
||||||
refreshProgress.addToNumberOfTasksAndRemaining(1)
|
|
||||||
group.enter()
|
group.enter()
|
||||||
feedProvider.refresh(webFeed) { result in
|
feedProvider.refresh(webFeed) { result in
|
||||||
switch result {
|
switch result {
|
||||||
|
@ -589,7 +588,6 @@ private extension CloudKitAccountDelegate {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
refreshProgress.addToNumberOfTasksAndRemaining(refresherWebFeeds.count)
|
|
||||||
group.enter()
|
group.enter()
|
||||||
refresher.refreshFeeds(refresherWebFeeds) {
|
refresher.refreshFeeds(refresherWebFeeds) {
|
||||||
group.leave()
|
group.leave()
|
||||||
|
|
Loading…
Reference in New Issue