feat(settings): Preferences separate-editing toggle

Starts the Behavior subsection.
This commit is contained in:
2026-08-15 20:30:58 +01:00
parent 32600bf081
commit 286fe80e58
@@ -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 { if let preferencesErrorMessage {
Text(preferencesErrorMessage) Text(preferencesErrorMessage)
.font(.caption) .font(.caption)