mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Fix bug that was causing duplicate downloads on OPML import.
This commit is contained in:
@@ -195,15 +195,13 @@ final class CloudKitAccountDelegate: AccountDelegate {
|
||||
}
|
||||
}
|
||||
|
||||
// os_log(.error, log: self.log, "Error while subscribing to the feed: %@", error.localizedDescription)
|
||||
|
||||
refreshProgress.addToNumberOfTasksAndRemaining(2)
|
||||
publicZone.manageSubscriptions(webFeedURLs) { result in
|
||||
self.refreshProgress.completeTask()
|
||||
switch result {
|
||||
case .success:
|
||||
self.accountZone.importOPML(rootExternalID: rootExternalID, items: normalizedItems) { _ in
|
||||
self.refreshAll(for: account, completion: completion)
|
||||
self.refreshAll(for: account, downloadFeeds: false, completion: completion)
|
||||
}
|
||||
case .failure(let error):
|
||||
completion(.failure(error))
|
||||
|
||||
Reference in New Issue
Block a user