Decouple ScannedQrCodeDialog from UiViewModel (#3300)

This commit is contained in:
Phil Oliver 2025-10-03 06:12:40 -04:00 committed by GitHub
parent f854cafe6f
commit 4a8cd6fb41
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 105 additions and 21 deletions

View file

@ -150,7 +150,9 @@ fun MainScreen(uIViewModel: UIViewModel = hiltViewModel(), scanModel: BTScanMode
}
if (connectionState == ConnectionState.CONNECTED) {
requestChannelSet?.let { newChannelSet -> ScannedQrCodeDialog(uIViewModel, newChannelSet) }
requestChannelSet?.let { newChannelSet ->
ScannedQrCodeDialog(newChannelSet, onDismiss = { uIViewModel.clearRequestChannelUrl() })
}
}
analytics.addNavigationTrackingEffect(navController = navController)