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

This commit is contained in:
Gabriel20xx committed 2025-11-11 21:55:36 +01:00
1 parent eef630bbe6
commit e62eb8beab
1 file changed
+2 -1
@@ -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 }