mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2026-11-30 09:18:18 +00:00
Convert markArticles to async await.
This commit is contained in:
1 parent
bf58443fe1
commit
402ee970cc
11 files changed
+105
-23
No files matched your search
@@ -449,11 +449,11 @@ private extension AppDelegate {
|
||||
return
|
||||
}
|
||||
|
||||
account.markArticles(articles, statusKey: .read, flag: true) { _ in }
|
||||
try? await account.markArticles(articles, statusKey: .read, flag: true)
|
||||
|
||||
self.prepareAccountsForBackground()
|
||||
|
||||
try? await account.syncArticleStatus
|
||||
try? await account.syncArticleStatus()
|
||||
if !self.accountManager.isSuspended {
|
||||
try? WidgetDataEncoder.shared.encodeWidgetData()
|
||||
self.prepareAccountsForBackground()
|
||||
@@ -486,7 +486,7 @@ private extension AppDelegate {
|
||||
return
|
||||
}
|
||||
|
||||
account.markArticles(articles, statusKey: .starred, flag: true) { _ in }
|
||||
try? await account.markArticles(articles, statusKey: .starred, flag: true)
|
||||
|
||||
try? await account.syncArticleStatus()
|
||||
if !self.accountManager.isSuspended {
|
||||
|
||||
Reference in new issue
Block a user