Merge pull request #573 from meshtastic/2.3.3_Working_Changes

Hide waypoint button when not connected
This commit is contained in:
Garth Vander Houwen 2024-03-28 16:16:29 -07:00 committed by GitHub
commit f2f22fcd10
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 8 additions and 1 deletions

View file

@ -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: {

View file

@ -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()
}
}
}