Make feed icons and favicons show up more quickly and reliably in the timeline.

This commit is contained in:
Brent Simmons 2018-01-09 21:09:09 -08:00
parent f982b63a6e
commit 8b2f9b333a
1 changed files with 4 additions and 1 deletions

View File

@ -119,6 +119,7 @@ class TimelineViewController: NSViewController, UndoableCommandRunner {
NotificationCenter.default.addObserver(self, selector: #selector(feedIconDidBecomeAvailable(_:)), name: .FeedIconDidBecomeAvailable, object: nil)
NotificationCenter.default.addObserver(self, selector: #selector(avatarDidBecomeAvailable(_:)), name: .AvatarDidBecomeAvailable, object: nil)
NotificationCenter.default.addObserver(self, selector: #selector(imageDidBecomeAvailable(_:)), name: .ImageDidBecomeAvailable, object: nil)
NotificationCenter.default.addObserver(self, selector: #selector(imageDidBecomeAvailable(_:)), name: .FaviconDidBecomeAvailable, object: nil)
NSUserDefaultsController.shared.addObserver(self, forKeyPath: timelineFontSizeKVOKey, options: NSKeyValueObservingOptions(rawValue: 0), context: nil)
@ -351,7 +352,9 @@ class TimelineViewController: NSViewController, UndoableCommandRunner {
@objc func imageDidBecomeAvailable(_ note: Notification) {
queueReloadAvailableCells()
if showAvatars {
queueReloadAvailableCells()
}
}
func fontSizeInDefaultsDidChange() {