diff options
| author | Ruben Beltran del Rio <git@r.bdr.sh> | 2025-07-11 09:27:49 +0200 |
|---|---|---|
| committer | Ruben Beltran del Rio <git@r.bdr.sh> | 2025-07-11 09:27:49 +0200 |
| commit | 8564439356f4bcc3e21b19738eb87b4c0722c623 (patch) | |
| tree | 1465f4e48be83d255e5c68de804ba940db238bea /Map/Presentation/Preferences | |
| parent | ff3619fdf3fce82d95124654a18b66ca3ed380cd (diff) | |
Add missing vertex detection
Diffstat (limited to 'Map/Presentation/Preferences')
| -rw-r--r-- | Map/Presentation/Preferences/EditorPreferencesView.swift | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Map/Presentation/Preferences/EditorPreferencesView.swift b/Map/Presentation/Preferences/EditorPreferencesView.swift index c08b03e..98e96f0 100644 --- a/Map/Presentation/Preferences/EditorPreferencesView.swift +++ b/Map/Presentation/Preferences/EditorPreferencesView.swift @@ -26,6 +26,9 @@ struct EditorPreferencesView: View { .editorFontSize @AppStorage("softWrapLines") private var softWrapLines: Bool = UserPreferences.Defaults .softWrapLines + @AppStorage("highlightMissingComponents") private var highlightMissingComponents: Bool = + UserPreferences.Defaults + .softWrapLines var monospacedFonts: [String] { let fontManager = NSFontManager.shared @@ -117,6 +120,11 @@ struct EditorPreferencesView: View { VStack(alignment: .leading, spacing: Dimensions.Spacing.cozy) { Toggle( String(localized: "preferences.editor.smart_editor.enabled"), isOn: $useSmartEditor) + Toggle( + String(localized: "preferences.editor.smart_editor.highlight_missing_components"), + isOn: $highlightMissingComponents + ) + .disabled(!useSmartEditor) } .frame(maxWidth: .infinity, alignment: .leading) } |