mirror of
https://github.com/meshtastic/Meshtastic-Apple.git
synced 2026-04-20 22:13:56 +00:00
get canned messages after the module is saved in all cases
This commit is contained in:
parent
b3e06a0b2a
commit
940ebab3ad
2 changed files with 3 additions and 6 deletions
|
|
@ -818,10 +818,7 @@ class BLEManager: NSObject, CBPeripheralDelegate, MqttClientProxyManagerDelegate
|
|||
nowKnown = true
|
||||
moduleConfig(config: decodedInfo.moduleConfig, context: context, nodeNum: Int64(truncatingIfNeeded: cp.num), nodeLongName: cp.longName)
|
||||
if decodedInfo.moduleConfig.payloadVariant == ModuleConfig.OneOf_PayloadVariant.cannedMessage(decodedInfo.moduleConfig.cannedMessage) {
|
||||
if decodedInfo.moduleConfig.cannedMessage.enabled {
|
||||
_ = self.getCannedMessageModuleMessages(destNum: cp.num, wantResponse: true)
|
||||
|
||||
}
|
||||
_ = self.getCannedMessageModuleMessages(destNum: cp.num, wantResponse: true)
|
||||
}
|
||||
if decodedInfo.config.payloadVariant == Config.OneOf_PayloadVariant.device(decodedInfo.config.device) {
|
||||
var dc = decodedInfo.config.device
|
||||
|
|
|
|||
|
|
@ -54,13 +54,13 @@ struct ConnectedDevice: View {
|
|||
} else {
|
||||
// Create a container for Bluetooth off state
|
||||
HStack {
|
||||
Text("bluetooth.off".localized)
|
||||
Text("Bluetooth is off".localized)
|
||||
.font(.subheadline)
|
||||
.foregroundColor(.red)
|
||||
.accessibilityHidden(true)
|
||||
}
|
||||
.accessibilityElement(children: .ignore)
|
||||
.accessibilityLabel("bluetooth.off".localized)
|
||||
.accessibilityLabel("Bluetooth is off".localized)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue