fix(macos): keep config writes on main actor
This commit is contained in:
@@ -171,7 +171,8 @@ struct MenuContent: View {
|
||||
}
|
||||
}
|
||||
|
||||
private nonisolated static func buildAndSaveBrowserEnabled(_ enabled: Bool) async -> (Bool,()) {
|
||||
@MainActor
|
||||
private static func buildAndSaveBrowserEnabled(_ enabled: Bool) async -> (Bool,()) {
|
||||
var root = await ConfigStore.load()
|
||||
var browser = root["browser"] as? [String: Any] ?? [:]
|
||||
browser["enabled"] = enabled
|
||||
|
||||
Reference in New Issue
Block a user