Create and use shared initializeDownloaders AppDelegate function.
This commit is contained in:
parent
e990b7aab1
commit
ada9818541
@ -149,10 +149,9 @@ import Sparkle
|
||||
|
||||
CacheCleaner.purgeIfNecessary()
|
||||
|
||||
FaviconDownloader.shared.delegate = self
|
||||
FeedIconDownloader.shared.delegate = self
|
||||
initializeDownloaders()
|
||||
}
|
||||
|
||||
|
||||
func applicationDidFinishLaunching(_ note: Notification) {
|
||||
|
||||
#if MAC_APP_STORE || TEST
|
||||
|
@ -20,4 +20,10 @@ extension AppDelegate: FaviconDownloaderDelegate, FeedIconDownloaderDelegate {
|
||||
|
||||
await HTMLMetadataDownloader.downloadMetadata(for: url)
|
||||
}
|
||||
|
||||
func initializeDownloaders() {
|
||||
|
||||
FaviconDownloader.shared.delegate = self
|
||||
FeedIconDownloader.shared.delegate = self
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user