Make ArticleThemeDownloader a struct with static funcs, which fixes the concurrency warning about the static shared property (which got removed).

This commit is contained in:
Brent Simmons
2024-03-24 21:25:11 -07:00
parent 8ad09228db
commit cda4c9eb29
5 changed files with 34 additions and 36 deletions

View File

@@ -345,7 +345,7 @@ private extension AppDelegate {
accountManager.suspendNetworkAll()
accountManager.suspendDatabaseAll()
ArticleThemeDownloader.shared.cleanUp()
ArticleThemeDownloader.cleanUp()
CoalescingQueue.standard.performCallsImmediately()
for scene in UIApplication.shared.connectedScenes {

View File

@@ -192,7 +192,7 @@ class SceneDelegate: UIResponder, UIWindowSceneDelegate {
let location = location else { return }
do {
try ArticleThemeDownloader.shared.handleFile(at: location)
try ArticleThemeDownloader.handleFile(at: location)
} catch {
NotificationCenter.default.post(name: .didFailToImportThemeWithError, object: nil, userInfo: ["error": error])
}