refactor: channel qr clean (#1983)

This commit is contained in:
Robert-0410 2025-05-30 17:50:45 -07:00 committed by GitHub
parent 7dc2147169
commit 5edc2a8d57
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 208 additions and 167 deletions

View file

@ -77,6 +77,11 @@ import com.geeksville.mesh.ui.radioconfig.components.StoreForwardConfigScreen
import com.geeksville.mesh.ui.radioconfig.components.TelemetryConfigScreen
import com.geeksville.mesh.ui.radioconfig.components.UserConfigScreen
fun getNavRouteFrom(routeName: String): Route? {
return ConfigRoute.entries.find { it.name == routeName }?.route
?: ModuleRoute.entries.find { it.name == routeName }?.route
}
fun NavGraphBuilder.radioConfigGraph(navController: NavHostController, uiViewModel: UIViewModel) {
navigation<Graph.RadioConfigGraph>(
startDestination = Route.RadioConfig(),