feat: highlight settings tab for both Settings and Logs screens in navigation
This commit is contained in:
@@ -84,7 +84,8 @@ fun MainApp() {
|
|||||||
label = { Text("Tables") },
|
label = { Text("Tables") },
|
||||||
)
|
)
|
||||||
NavigationBarItem(
|
NavigationBarItem(
|
||||||
selected = currentRoute == Routes.SETTINGS,
|
// Highlight settings tab for both Settings screen and Logs screen
|
||||||
|
selected = currentRoute == Routes.SETTINGS || currentRoute == Routes.LOGS,
|
||||||
onClick = {
|
onClick = {
|
||||||
navController.navigate(Routes.SETTINGS) {
|
navController.navigate(Routes.SETTINGS) {
|
||||||
popUpTo(navController.graph.findStartDestination().id) { saveState = true }
|
popUpTo(navController.graph.findStartDestination().id) { saveState = true }
|
||||||
|
|||||||
Reference in New Issue
Block a user