mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2024-12-23 16:20:53 +01:00
Clear the progress when a feed isn't found.
This commit is contained in:
parent
43382df4ec
commit
a7b0ff8c89
@ -317,6 +317,7 @@ final class ReaderAPIAccountDelegate: AccountDelegate {
|
||||
case .success(let feedSpecifiers):
|
||||
let feedSpecifiers = feedSpecifiers.filter { !$0.urlString.contains("json") }
|
||||
guard let bestFeedSpecifier = FeedSpecifier.bestFeed(in: feedSpecifiers) else {
|
||||
self.refreshProgress.clear()
|
||||
completion(.failure(AccountError.createErrorNotFound))
|
||||
return
|
||||
}
|
||||
@ -346,6 +347,7 @@ final class ReaderAPIAccountDelegate: AccountDelegate {
|
||||
|
||||
}
|
||||
case .failure:
|
||||
self.refreshProgress.clear()
|
||||
completion(.failure(AccountError.createErrorNotFound))
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user