feat: highlight settings tab for both Settings and Logs screens in navigation

This commit is contained in:
2025-11-11 21:55:36 +01:00
parent eef630bbe6
commit e62eb8beab
@@ -84,7 +84,8 @@ fun MainApp() {
label = { Text("Tables") },
)
NavigationBarItem(
selected = currentRoute == Routes.SETTINGS,
// Highlight settings tab for both Settings screen and Logs screen
selected = currentRoute == Routes.SETTINGS || currentRoute == Routes.LOGS,
onClick = {
navController.navigate(Routes.SETTINGS) {
popUpTo(navController.graph.findStartDestination().id) { saveState = true }