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,10 +149,9 @@ import Sparkle
|
|||||||
|
|
||||||
CacheCleaner.purgeIfNecessary()
|
CacheCleaner.purgeIfNecessary()
|
||||||
|
|
||||||
FaviconDownloader.shared.delegate = self
|
initializeDownloaders()
|
||||||
FeedIconDownloader.shared.delegate = self
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func applicationDidFinishLaunching(_ note: Notification) {
|
func applicationDidFinishLaunching(_ note: Notification) {
|
||||||
|
|
||||||
#if MAC_APP_STORE || TEST
|
#if MAC_APP_STORE || TEST
|
||||||
|
@ -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