mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2025-01-11 09:14:06 +01:00
Fix homePageURLsWithNoFaviconURLCache
This commit is contained in:
parent
071bd8c57c
commit
b088cda5a5
@ -131,20 +131,12 @@ final class FaviconDownloader {
|
||||
}
|
||||
|
||||
findFaviconURLs(with: url) { (faviconURLs) in
|
||||
var hasIcons = false
|
||||
|
||||
if let faviconURLs = faviconURLs {
|
||||
if let firstIconURL = faviconURLs.first {
|
||||
hasIcons = true
|
||||
let _ = self.favicon(with: firstIconURL, homePageURL: url)
|
||||
self.remainingFaviconURLs[url] = faviconURLs.dropFirst()
|
||||
}
|
||||
}
|
||||
|
||||
if (!hasIcons) {
|
||||
self.homePageURLsWithNoFaviconURLCache.insert(url)
|
||||
self.homePageURLsWithNoFaviconURLCacheDirty = true
|
||||
}
|
||||
}
|
||||
|
||||
return nil
|
||||
@ -167,6 +159,8 @@ final class FaviconDownloader {
|
||||
remainingFaviconURLs[homePageURL] = faviconURLs.dropFirst();
|
||||
} else {
|
||||
remainingFaviconURLs[homePageURL] = nil
|
||||
self.homePageURLsWithNoFaviconURLCache.insert(homePageURL)
|
||||
self.homePageURLsWithNoFaviconURLCacheDirty = true
|
||||
}
|
||||
}
|
||||
return
|
||||
|
Loading…
Reference in New Issue
Block a user