From 7d7292a54adad53da31ce380efe0bf63401db24e Mon Sep 17 00:00:00 2001 From: nreisbeck <10735102+nreisbeck@users.noreply.github.com> Date: Fri, 20 Feb 2026 19:01:45 -0800 Subject: [PATCH] =?UTF-8?q?fix(qr):=20add=20channels=20as=20key=20to=20rem?= =?UTF-8?q?ember=20block=20to=20fix=20add-channel=20rac=E2=80=A6=20(#4607)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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> --- .../kotlin/org/meshtastic/core/ui/qr/ScannedQrCodeDialog.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/ui/src/main/kotlin/org/meshtastic/core/ui/qr/ScannedQrCodeDialog.kt b/core/ui/src/main/kotlin/org/meshtastic/core/ui/qr/ScannedQrCodeDialog.kt index 851abbe65..819b26acb 100644 --- a/core/ui/src/main/kotlin/org/meshtastic/core/ui/qr/ScannedQrCodeDialog.kt +++ b/core/ui/src/main/kotlin/org/meshtastic/core/ui/qr/ScannedQrCodeDialog.kt @@ -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