mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Fix a couple concurrency warnings.
This commit is contained in:
@@ -19,12 +19,12 @@ enum ReadFilterType {
|
||||
protocol SidebarItem: SidebarItemIdentifiable, ArticleFetcher, DisplayNameProvider, UnreadCountProvider {
|
||||
|
||||
var account: Account? { get }
|
||||
var defaultReadFilterType: ReadFilterType { get }
|
||||
@MainActor var defaultReadFilterType: ReadFilterType { get }
|
||||
}
|
||||
|
||||
extension SidebarItem {
|
||||
|
||||
func readFiltered(readFilterEnabledTable: [SidebarItemIdentifier: Bool]) -> Bool {
|
||||
@MainActor func readFiltered(readFilterEnabledTable: [SidebarItemIdentifier: Bool]) -> Bool {
|
||||
guard defaultReadFilterType != .alwaysRead else {
|
||||
return true
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user