mirror of
https://github.com/meshtastic/Meshtastic-Apple.git
synced 2026-04-20 22:13:56 +00:00
Dont allow json and the client proxy, max position request of 300 for the mesh map
This commit is contained in:
parent
554fe9a3ca
commit
d768eb64e9
2 changed files with 7 additions and 1 deletions
|
|
@ -14,7 +14,7 @@ extension PositionEntity {
|
|||
|
||||
static func allPositionsFetchRequest() -> NSFetchRequest<PositionEntity> {
|
||||
let request: NSFetchRequest<PositionEntity> = PositionEntity.fetchRequest()
|
||||
//request.fetchLimit = 200
|
||||
request.fetchLimit = 300
|
||||
//request.fetchBatchSize = 1
|
||||
request.returnsObjectsAsFaults = false
|
||||
request.includesSubentities = true
|
||||
|
|
|
|||
|
|
@ -276,6 +276,9 @@ struct MQTTConfig: View {
|
|||
}
|
||||
}
|
||||
.onChange(of: proxyToClientEnabled) { newProxyToClientEnabled in
|
||||
if newProxyToClientEnabled {
|
||||
jsonEnabled = false
|
||||
}
|
||||
if node != nil && node?.mqttConfig != nil {
|
||||
if newProxyToClientEnabled != node!.mqttConfig!.proxyToClientEnabled { hasChanges = true }
|
||||
if newProxyToClientEnabled {
|
||||
|
|
@ -289,6 +292,9 @@ struct MQTTConfig: View {
|
|||
}
|
||||
}
|
||||
.onChange(of: jsonEnabled) { newJsonEnabled in
|
||||
if newJsonEnabled {
|
||||
proxyToClientEnabled = false
|
||||
}
|
||||
if node != nil && node?.mqttConfig != nil {
|
||||
if newJsonEnabled != node!.mqttConfig!.jsonEnabled { hasChanges = true }
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue