mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00: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:
parent
f35ef6bc6e
commit
7d7292a54a
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue