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