Hid fixed postion checkbox if managing a node over the admin channel

This commit is contained in:
Garth Vander Houwen 2024-05-11 10:50:58 -07:00
parent 61c4b23d49
commit 8e07453afd
2 changed files with 2 additions and 2 deletions

View file

@ -163,7 +163,7 @@ struct PositionConfig: View {
.font(.callout)
}
}
if gpsMode != 1 {
if gpsMode != 1 && node?.num ?? 0 == bleManager.connectedPeripheral?.num ?? -1 {
VStack(alignment: .leading) {
Toggle(isOn: $fixedPosition) {
Label("Fixed Position", systemImage: "location.square.fill")

@ -1 +1 @@
Subproject commit dd7d64cc038a6365c119ec7508762cc45f405948
Subproject commit f92900c5f884b04388fb7abf61d4df66783015e4