get canned messages after the module is saved in all cases

This commit is contained in:
Garth Vander Houwen 2025-07-16 15:15:33 -07:00
parent b3e06a0b2a
commit 940ebab3ad
2 changed files with 3 additions and 6 deletions

View file

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

View file

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