mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Ensure status changes are sent before refresh.
When the refresh button was manually clicked a full refresh would occur, but locally changed statuses wouldn't be sent. This meant the statuses of items in NetNewsWire would revert to their remote values until an automatic status sync was triggered.
This commit is contained in:
@@ -298,7 +298,9 @@ public final class Account: DisplayNameProvider, UnreadCountProvider, Container,
|
||||
}
|
||||
|
||||
public func refreshAll(completion: @escaping (Result<Void, Error>) -> Void) {
|
||||
self.delegate.refreshAll(for: self, completion: completion)
|
||||
delegate.sendArticleStatus(for: self) { [unowned self] in
|
||||
self.delegate.refreshAll(for: self, completion: completion)
|
||||
}
|
||||
}
|
||||
|
||||
public func syncArticleStatus(completion: (() -> Void)? = nil) {
|
||||
|
||||
Reference in New Issue
Block a user