Fix a couple concurrency warnings.
This commit is contained in:
parent
6e8eecb6a9
commit
9d6d15bd93
@ -33,7 +33,7 @@ public extension Notification.Name {
|
||||
static let StatusesDidChange = Notification.Name(rawValue: "StatusesDidChange")
|
||||
}
|
||||
|
||||
public enum AccountType: Int, Codable {
|
||||
public enum AccountType: Int, Codable, Sendable {
|
||||
// Raw values should not change since they’re stored on disk.
|
||||
case onMyMac = 1
|
||||
case cloudKit = 2
|
||||
|
@ -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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user