mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-06-02 06:24:16 +02:00
feat(nav): rename tab labels to canonical order (#5551)
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -59,7 +59,7 @@ fun MainScreen() {
|
||||
// from the StateFlow (seeded from persisted prefs) so the initial tab is set in one shot.
|
||||
val initialTab =
|
||||
if (viewModel.currentDeviceAddressFlow.value.isNullOrSelectedNone()) {
|
||||
TopLevelDestination.Connections.route
|
||||
TopLevelDestination.Connect.route
|
||||
} else {
|
||||
NodesRoute.Nodes
|
||||
}
|
||||
@@ -82,7 +82,7 @@ fun MainScreen() {
|
||||
scrollToTopEvents = viewModel.scrollToTopEventFlow,
|
||||
onHandleDeepLink = viewModel::handleDeepLink,
|
||||
onNavigateToConnections = {
|
||||
multiBackstack.navigateTopLevel(TopLevelDestination.Connections.route)
|
||||
multiBackstack.navigateTopLevel(TopLevelDestination.Connect.route)
|
||||
},
|
||||
)
|
||||
mapGraph(backStack)
|
||||
|
||||
Reference in New Issue
Block a user