mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2024-12-22 15:50:17 +01:00
Create and use shared initializeDownloaders AppDelegate function.
This commit is contained in:
parent
e990b7aab1
commit
ada9818541
@ -149,8 +149,7 @@ import Sparkle
|
||||
|
||||
CacheCleaner.purgeIfNecessary()
|
||||
|
||||
FaviconDownloader.shared.delegate = self
|
||||
FeedIconDownloader.shared.delegate = self
|
||||
initializeDownloaders()
|
||||
}
|
||||
|
||||
func applicationDidFinishLaunching(_ note: Notification) {
|
||||
|
@ -20,4 +20,10 @@ extension AppDelegate: FaviconDownloaderDelegate, FeedIconDownloaderDelegate {
|
||||
|
||||
await HTMLMetadataDownloader.downloadMetadata(for: url)
|
||||
}
|
||||
|
||||
func initializeDownloaders() {
|
||||
|
||||
FaviconDownloader.shared.delegate = self
|
||||
FeedIconDownloader.shared.delegate = self
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user