Fix warning about not being in a @MainActor context.

This commit is contained in:
Brent Simmons
2023-04-05 18:27:52 -07:00
parent ed730b45a2
commit 1f9305eb9a

View File

@@ -63,7 +63,9 @@ extension AppDelegate : AppDelegateAppleEvents {
do {
try ArticleThemeDownloader.shared.handleFile(at: location)
} catch {
self.presentThemeImportError(error)
Task { @MainActor in
self.presentThemeImportError(error)
}
}
}
task.resume()