File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Sources/WelcomeWindow/Model Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -3,16 +3,17 @@ import CoreSpotlight
33import OSLog
44
55/// A utility store for managing recent project file access using security-scoped bookmarks.
6+ @MainActor
67public 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 {
You can’t perform that action at this time.
0 commit comments