mirror of
https://github.com/meshtastic/Meshtastic-Apple.git
synced 2026-04-20 22:13:56 +00:00
Clean up context menu on connnected radio
This commit is contained in:
parent
d7ad7a7e72
commit
b1aa917784
2 changed files with 10 additions and 5 deletions
|
|
@ -4365,8 +4365,12 @@
|
|||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"BLE RSSI %lld" : {
|
||||
|
||||
},
|
||||
"BLE RSSI: %lld" : {
|
||||
"extractionState" : "stale",
|
||||
"localizations" : {
|
||||
"it" : {
|
||||
"stringUnit" : {
|
||||
|
|
@ -16251,6 +16255,7 @@
|
|||
}
|
||||
},
|
||||
"Long Name: %@" : {
|
||||
"extractionState" : "stale",
|
||||
"localizations" : {
|
||||
"de" : {
|
||||
"stringUnit" : {
|
||||
|
|
@ -20047,6 +20052,7 @@
|
|||
}
|
||||
},
|
||||
"Num: %@" : {
|
||||
"extractionState" : "stale",
|
||||
"localizations" : {
|
||||
"de" : {
|
||||
"stringUnit" : {
|
||||
|
|
@ -28155,6 +28161,7 @@
|
|||
}
|
||||
},
|
||||
"Short Name: %@" : {
|
||||
"extractionState" : "stale",
|
||||
"localizations" : {
|
||||
"de" : {
|
||||
"stringUnit" : {
|
||||
|
|
|
|||
|
|
@ -105,6 +105,8 @@ struct Connect: View {
|
|||
.contextMenu {
|
||||
|
||||
if node != nil {
|
||||
Label("\(String(node!.num))", systemImage: "number")
|
||||
Label("BLE RSSI \(connectedPeripheral.rssi)", systemImage: "cellularbars")
|
||||
#if !targetEnvironment(macCatalyst)
|
||||
if bleManager.isSubscribed {
|
||||
Button {
|
||||
|
|
@ -124,10 +126,6 @@ struct Connect: View {
|
|||
}
|
||||
}
|
||||
#endif
|
||||
Text("Num: \(String(node!.num))")
|
||||
Text("Short Name: \(node?.user?.shortName ?? "?")")
|
||||
Text("Long Name: \(node?.user?.longName?.addingVariationSelectors ?? "Unknown".localized)")
|
||||
Text("BLE RSSI: \(connectedPeripheral.rssi)")
|
||||
if bleManager.allowDisconnect {
|
||||
Button(role: .destructive) {
|
||||
if let connectedPeripheral = bleManager.connectedPeripheral,
|
||||
|
|
@ -137,7 +135,7 @@ struct Connect: View {
|
|||
} label: {
|
||||
Label("Disconnect", systemImage: "antenna.radiowaves.left.and.right.slash")
|
||||
}
|
||||
Button {
|
||||
Button(role: .destructive) {
|
||||
if !bleManager.sendShutdown(fromUser: node!.user!, toUser: node!.user!) {
|
||||
Logger.mesh.error("Shutdown Failed")
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue