mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2026-11-29 08:42:51 +00:00
Fix a couple concurrency warnings.
This commit is contained in:
1 parent
6e8eecb6a9
commit
9d6d15bd93
2 files changed
+3
-3
No files matched your search
@@ -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
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user