Pay attention to the changed key when handling feed setting change notifications.

This commit is contained in:
Brent Simmons
2019-03-17 13:54:30 -07:00
parent 5f1bdb29ec
commit 70bc4a7b45
3 changed files with 16 additions and 12 deletions

View File

@@ -129,10 +129,12 @@ protocol SidebarDelegate: class {
@objc func feedSettingDidChange(_ note: Notification) {
guard let feed = note.object as? Feed else {
guard let feed = note.object as? Feed, let key = note.userInfo?[Feed.FeedSettingUserInfoKey] as? String else {
return
}
configureCellsForRepresentedObject(feed)
if key == Feed.FeedSettingKey.homePageURL || key == Feed.FeedSettingKey.faviconURL {
configureCellsForRepresentedObject(feed)
}
}
@objc func displayNameDidChange(_ note: Notification) {