mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-03-31 04:04:46 -04:00
fix(qr): add channels as key to remember block to fix add-channel rac… (#4607)
Signed-off-by: James Rich <2199651+jamesarich@users.noreply.github.com> Co-authored-by: James Rich <2199651+jamesarich@users.noreply.github.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -91,7 +91,7 @@ fun ScannedQrCodeDialog(
|
||||
var shouldReplace by remember { mutableStateOf(incoming.lora_config != null) }
|
||||
|
||||
val channelSet =
|
||||
remember(shouldReplace) {
|
||||
remember(shouldReplace, channels, incoming) {
|
||||
if (shouldReplace) {
|
||||
// When replacing, apply the incoming LoRa configuration but preserve certain
|
||||
// locally safe fields such as MQTT flags and TX power. This prevents QR codes
|
||||
|
||||
Reference in New Issue
Block a user