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:
nreisbeck
2026-02-20 19:01:45 -08:00
committed by GitHub
parent f35ef6bc6e
commit 7d7292a54a

View File

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