Reload the title view icon again after it becomes available
This commit is contained in:
parent
cb1e8e393e
commit
4e239a44e1
|
@ -13,6 +13,7 @@ import Articles
|
|||
|
||||
class MasterTimelineViewController: UITableViewController, UndoableCommandRunner {
|
||||
|
||||
private var titleView: MasterTimelineTitleView?
|
||||
private var numberOfTextLines = 0
|
||||
|
||||
@IBOutlet weak var markAllAsReadButton: UIBarButtonItem!
|
||||
|
@ -342,6 +343,7 @@ class MasterTimelineViewController: UITableViewController, UndoableCommandRunner
|
|||
}
|
||||
|
||||
@objc func faviconDidBecomeAvailable(_ note: Notification) {
|
||||
titleView?.imageView.image = coordinator.timelineFavicon
|
||||
if coordinator.showAvatars {
|
||||
queueReloadAvailableCells()
|
||||
}
|
||||
|
@ -455,6 +457,7 @@ private extension MasterTimelineViewController {
|
|||
|
||||
title = coordinator.timelineName
|
||||
if let titleView = Bundle.main.loadNibNamed("MasterTimelineTitleView", owner: self, options: nil)?[0] as? MasterTimelineTitleView {
|
||||
self.titleView = titleView
|
||||
titleView.imageView.image = coordinator.timelineFavicon
|
||||
titleView.label.text = coordinator.timelineName
|
||||
navigationItem.titleView = titleView
|
||||
|
|
Loading…
Reference in New Issue