From bdb38b426ed334b39e2239df0baad8e667cf80eb Mon Sep 17 00:00:00 2001 From: Garth Vander Houwen Date: Fri, 16 Feb 2024 16:54:56 -0800 Subject: [PATCH] Save smart postion user default --- Meshtastic/Views/Settings/AppSettings.swift | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Meshtastic/Views/Settings/AppSettings.swift b/Meshtastic/Views/Settings/AppSettings.swift index 44b1790f..579aeda5 100644 --- a/Meshtastic/Views/Settings/AppSettings.swift +++ b/Meshtastic/Views/Settings/AppSettings.swift @@ -73,6 +73,9 @@ struct AppSettings: View { Label("appsettings.smartposition", systemImage: "brain.fill") } .toggleStyle(SwitchToggleStyle(tint: .accentColor)) + .onChange(of: (enableSmartPosition)) { newEnableSmartPosition in + UserDefaults.enableSmartPosition = newEnableSmartPosition + } VStack { Picker("update.interval", selection: $provideLocationInterval) { ForEach(LocationUpdateInterval.allCases) { lu in