mirror of
https://github.com/meshtastic/Meshtastic-Apple.git
synced 2026-04-20 22:13:56 +00:00
Channel form cleanup
This commit is contained in:
parent
4d897da1b5
commit
e3dac4e4bd
1 changed files with 2 additions and 3 deletions
|
|
@ -138,7 +138,7 @@ struct ChannelForm: View {
|
|||
}
|
||||
|
||||
if positionsEnabled {
|
||||
if channelKey != "AQ==" && channelRole > 0 {
|
||||
if (channelKey != "AQ==" && channelKeySize > 1) && channelRole > 0 {
|
||||
VStack(alignment: .leading) {
|
||||
Toggle(isOn: $preciseLocation) {
|
||||
Label("Precise Location", systemImage: "scope")
|
||||
|
|
@ -212,12 +212,11 @@ struct ChannelForm: View {
|
|||
}
|
||||
.onChange(of: preciseLocation) { _, loc in
|
||||
if loc == true {
|
||||
if channelKey == "AQ==" {
|
||||
if channelKey == "AQ==" || channelKeySize <= 1 {
|
||||
preciseLocation = false
|
||||
} else {
|
||||
positionPrecision = 32
|
||||
}
|
||||
positionPrecision = 32
|
||||
} else {
|
||||
positionPrecision = 14
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue