feat(settings): Preferences separate-editing toggle

Starts the Behavior subsection.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
2026-08-15 20:30:58 +01:00
co-authored by Claude Sonnet 5
parent 5a8fea73bf
commit 77bf75babb
@@ -272,6 +272,15 @@ struct SettingsView: View {
)
}
preferencesSubsection("Behavior") {
preferenceToggleRow(
"Separate editing",
description: "When enabled, documents have a separate editing mode. When disabled, documents are always editable when you have permission.",
isOn: session.userPreferences?.separateEditing ?? false,
onChange: { newValue in Task { await savePreference { $0.separateEditing = newValue } } }
)
}
if let preferencesErrorMessage {
Text(preferencesErrorMessage)
.font(.caption)