Skip to content

Commit 55daa3c

Browse files
- More concurrency changes
1 parent 5b9e39e commit 55daa3c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Sources/WelcomeWindow/Model/RecentsStore.swift

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,17 @@ import CoreSpotlight
33
import OSLog
44

55
/// A utility store for managing recent project file access using security-scoped bookmarks.
6+
@MainActor
67
public enum RecentsStore {
78

89
/// The UserDefaults key for storing recent project bookmarks.
910
private static let bookmarksKey = "recentProjectBookmarks"
1011

1112
/// Notification sent when the recent projects list is updated.
1213
public static let didUpdateNotification = Notification.Name("RecentsStore.didUpdate")
13-
14+
1415
/// For tests (or previews) before any API call.
15-
@MainActor public static var defaults: UserDefaults = .standard
16+
public static var defaults: UserDefaults = .standard
1617

1718
/// Internal representation of a bookmark entry.
1819
private struct BookmarkEntry: Codable, Equatable {

0 commit comments

Comments
 (0)