mirror of
https://github.com/meshtastic/Meshtastic-Apple.git
synced 2026-04-20 22:13:56 +00:00
Merge pull request #573 from meshtastic/2.3.3_Working_Changes
Hide waypoint button when not connected
This commit is contained in:
commit
f2f22fcd10
2 changed files with 8 additions and 1 deletions
|
|
@ -187,7 +187,7 @@ struct WaypointForm: View {
|
|||
.controlSize(.regular)
|
||||
.padding(.bottom)
|
||||
|
||||
if waypoint.id > 0 {
|
||||
if waypoint.id > 0 && bleManager.isConnected {
|
||||
|
||||
Menu {
|
||||
Button("For me", action: {
|
||||
|
|
|
|||
|
|
@ -79,5 +79,12 @@ struct NodeInfoItem: View {
|
|||
}
|
||||
}
|
||||
Divider()
|
||||
if node.metadata != nil {
|
||||
HStack(alignment: .center) {
|
||||
Text("firmware.version").font(.title2)+Text(": \(node.metadata?.firmwareVersion ?? "unknown".localized)")
|
||||
.font(.title3).foregroundColor(Color.gray)
|
||||
}
|
||||
Divider()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue