Only apply cell updates to the correct feed icon notification

This commit is contained in:
Maurice Parker 2019-11-05 19:57:15 -06:00
parent 84ab745e06
commit bed5cfa94d
1 changed files with 4 additions and 1 deletions

View File

@ -109,7 +109,10 @@ class MasterFeedViewController: UITableViewController, UndoableCommandRunner {
}
@objc func feedIconDidBecomeAvailable(_ note: Notification) {
applyToAvailableCells(configureIcon)
guard let feed = note.userInfo?[UserInfoKey.feed] as? Feed else {
return
}
applyToCellsForRepresentedObject(feed, configureIcon(_:_:))
}
@objc func feedSettingDidChange(_ note: Notification) {