mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Merge branch 'main' of https://github.com/Ranchero-Software/NetNewsWire into main
This commit is contained in:
@@ -157,10 +157,10 @@ private extension SceneModel {
|
||||
func subscribeToAccountSyncErrors() {
|
||||
NotificationCenter.default.publisher(for: .AccountsDidFailToSyncWithErrors)
|
||||
.sink { [weak self] notification in
|
||||
guard let errors = notification.object as? [AccountSyncError] else {
|
||||
guard let syncErrors = notification.userInfo?[Account.UserInfoKey.syncErrors] as? [AccountSyncError] else {
|
||||
return
|
||||
}
|
||||
self?.accountSyncErrors = errors
|
||||
self?.accountSyncErrors = syncErrors
|
||||
}.store(in: &cancellables)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user