mirror of
https://github.com/meshtastic/Meshtastic-Apple.git
synced 2026-04-20 22:13:56 +00:00
Add map reporting opt in to user defaults
This commit is contained in:
parent
a0e94bd518
commit
cf0836feef
2 changed files with 6 additions and 1 deletions
|
|
@ -72,6 +72,7 @@ extension UserDefaults {
|
|||
case firmwareVersion
|
||||
case environmentEnableWeatherKit
|
||||
case enableAdministration
|
||||
case mapReportingOptIn
|
||||
case testIntEnum
|
||||
}
|
||||
|
||||
|
|
@ -148,6 +149,9 @@ extension UserDefaults {
|
|||
@UserDefault(.enableAdministration, defaultValue: false)
|
||||
static var enableAdministration: Bool
|
||||
|
||||
@UserDefault(.mapReportingOptIn, defaultValue: false)
|
||||
static var mapReportingOptIn: Bool
|
||||
|
||||
@UserDefault(.testIntEnum, defaultValue: .one)
|
||||
static var testIntEnum: TestIntEnum
|
||||
}
|
||||
|
|
|
|||
|
|
@ -30,8 +30,9 @@ struct MQTTConfig: View {
|
|||
@State var mqttConnected: Bool = false
|
||||
@State var defaultTopic = "msh/US"
|
||||
@State var nearbyTopics = [String]()
|
||||
@State var mapReportingOptIn = false
|
||||
@State var mapReportingEnabled = false
|
||||
@State var mapReportingOptIn = false
|
||||
//@AppStorage("mapReportingOptIn") private var mapReportingOptIn: Bool = false
|
||||
@State var mapPublishIntervalSecs = 3600
|
||||
@State var mapPositionPrecision: Double = 14.0
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue