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…
x
Reference in New Issue
Block a user