mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2024-12-22 23:58:36 +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()
|
CacheCleaner.purgeIfNecessary()
|
||||||
|
|
||||||
FaviconDownloader.shared.delegate = self
|
initializeDownloaders()
|
||||||
FeedIconDownloader.shared.delegate = self
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func applicationDidFinishLaunching(_ note: Notification) {
|
func applicationDidFinishLaunching(_ note: Notification) {
|
||||||
|
@ -20,4 +20,10 @@ extension AppDelegate: FaviconDownloaderDelegate, FeedIconDownloaderDelegate {
|
|||||||
|
|
||||||
await HTMLMetadataDownloader.downloadMetadata(for: url)
|
await HTMLMetadataDownloader.downloadMetadata(for: url)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func initializeDownloaders() {
|
||||||
|
|
||||||
|
FaviconDownloader.shared.delegate = self
|
||||||
|
FeedIconDownloader.shared.delegate = self
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user