mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2024-12-25 17:12:23 +01:00
Update only the favicon in the sidebar when a favicon is downloaded — no need to update the rest of the cell.
This commit is contained in:
parent
db1db7b701
commit
e6dee88e2e
@ -86,7 +86,7 @@ import RSCore
|
||||
|
||||
@objc func faviconDidBecomeAvailable(_ note: Notification) {
|
||||
|
||||
configureAvailableCells()
|
||||
applyToAvailableCells(configureFavicon)
|
||||
}
|
||||
|
||||
@objc func feedSettingDidChange(_ note: Notification) {
|
||||
@ -342,7 +342,7 @@ private extension SidebarViewController {
|
||||
cell.objectValue = node
|
||||
cell.name = nameFor(node)
|
||||
configureUnreadCount(cell, node)
|
||||
cell.image = imageFor(node)
|
||||
configureFavicon(cell, node)
|
||||
cell.shouldShowImage = node.representedObject is Feed
|
||||
}
|
||||
|
||||
@ -351,6 +351,11 @@ private extension SidebarViewController {
|
||||
cell.unreadCount = unreadCountFor(node)
|
||||
}
|
||||
|
||||
func configureFavicon(_ cell: SidebarCell, _ node: Node) {
|
||||
|
||||
cell.image = imageFor(node)
|
||||
}
|
||||
|
||||
func configureGroupCell(_ cell: NSTableCellView, _ node: Node) {
|
||||
|
||||
cell.objectValue = node
|
||||
|
Loading…
Reference in New Issue
Block a user