feat(settings): Preferences smart-text-replacements toggle
This commit is contained in:
@@ -286,6 +286,13 @@ struct SettingsView: View {
|
|||||||
isOn: session.userPreferences?.rememberLastPath ?? false,
|
isOn: session.userPreferences?.rememberLastPath ?? false,
|
||||||
onChange: { newValue in Task { await savePreference { $0.rememberLastPath = newValue } } }
|
onChange: { newValue in Task { await savePreference { $0.rememberLastPath = newValue } } }
|
||||||
)
|
)
|
||||||
|
Divider()
|
||||||
|
preferenceToggleRow(
|
||||||
|
"Smart text replacements",
|
||||||
|
description: "Auto-format text by replacing shortcuts with symbols, dashes, smart quotes, and other typographical elements.",
|
||||||
|
isOn: session.userPreferences?.smartText ?? false,
|
||||||
|
onChange: { newValue in Task { await savePreference { $0.smartText = newValue } } }
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
if let preferencesErrorMessage {
|
if let preferencesErrorMessage {
|
||||||
|
|||||||
Reference in New Issue
Block a user