mirror of
https://github.com/meshtastic/Meshtastic-Apple.git
synced 2026-04-20 22:13:56 +00:00
Add power off to connect context menu
This commit is contained in:
parent
2627858e33
commit
7e67532f24
2 changed files with 10 additions and 2 deletions
|
|
@ -121,6 +121,14 @@ struct Connect: View {
|
|||
Text("Short Name: \(node?.user?.shortName ?? "?")")
|
||||
Text("Long Name: \(node?.user?.longName ?? "unknown".localized)")
|
||||
Text("BLE RSSI: \(bleManager.connectedPeripheral.rssi)")
|
||||
Button {
|
||||
if !bleManager.sendShutdown(fromUser: node!.user!, toUser: node!.user!, adminIndex: node!.myInfo!.adminIndex) {
|
||||
print("Shutdown Failed")
|
||||
}
|
||||
|
||||
} label: {
|
||||
Label("Power Off", systemImage: "power")
|
||||
}
|
||||
}
|
||||
}
|
||||
if isUnsetRegion {
|
||||
|
|
@ -234,7 +242,7 @@ struct Connect: View {
|
|||
}
|
||||
.textCase(nil)
|
||||
}
|
||||
|
||||
|
||||
} else {
|
||||
Text("bluetooth.off")
|
||||
.foregroundColor(.red)
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
Subproject commit 22cbd0d4cfafa4b8c1e64517e06edc2d7a22cca9
|
||||
Subproject commit f92900c5f884b04388fb7abf61d4df66783015e4
|
||||
Loading…
Add table
Add a link
Reference in a new issue