From 8564439356f4bcc3e21b19738eb87b4c0722c623 Mon Sep 17 00:00:00 2001 From: Ruben Beltran del Rio Date: Fri, 11 Jul 2025 09:27:49 +0200 Subject: Add missing vertex detection --- Map/Presentation/Preferences/EditorPreferencesView.swift | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'Map/Presentation/Preferences') 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) } -- cgit