mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2025-01-06 15:18:25 +01:00
Refer to .shared image downloaders.
This commit is contained in:
parent
5deae9bd33
commit
ed5a11b4c0
@ -85,14 +85,14 @@ private extension IconImageCache {
|
|||||||
if let iconImage = feedIconImageCache[sidebarItemID] {
|
if let iconImage = feedIconImageCache[sidebarItemID] {
|
||||||
return iconImage
|
return iconImage
|
||||||
}
|
}
|
||||||
if let iconImage = appDelegate.feedIconDownloader.icon(for: feed) {
|
if let iconImage = FeedIconDownloader.shared.icon(for: feed) {
|
||||||
feedIconImageCache[sidebarItemID] = iconImage
|
feedIconImageCache[sidebarItemID] = iconImage
|
||||||
return iconImage
|
return iconImage
|
||||||
}
|
}
|
||||||
if let faviconImage = faviconImageCache[sidebarItemID] {
|
if let faviconImage = faviconImageCache[sidebarItemID] {
|
||||||
return faviconImage
|
return faviconImage
|
||||||
}
|
}
|
||||||
if let faviconImage = appDelegate.faviconDownloader.faviconAsIcon(for: feed) {
|
if let faviconImage = FaviconDownloader.shared.faviconAsIcon(for: feed) {
|
||||||
faviconImageCache[sidebarItemID] = faviconImage
|
faviconImageCache[sidebarItemID] = faviconImage
|
||||||
return faviconImage
|
return faviconImage
|
||||||
}
|
}
|
||||||
@ -121,7 +121,7 @@ private extension IconImageCache {
|
|||||||
if let iconImage = authorIconImageCache[author] {
|
if let iconImage = authorIconImageCache[author] {
|
||||||
return iconImage
|
return iconImage
|
||||||
}
|
}
|
||||||
if let iconImage = appDelegate.authorAvatarDownloader.image(for: author) {
|
if let iconImage = AuthorAvatarDownloader.shared.image(for: author) {
|
||||||
authorIconImageCache[author] = iconImage
|
authorIconImageCache[author] = iconImage
|
||||||
return iconImage
|
return iconImage
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user