fix: only open catch up screen if there are unreads

Signed-off-by: Infi <infi@infi.sh>
This commit is contained in:
Infi 2025-11-29 10:30:38 +01:00
parent dc8f8d9815
commit 66298238aa
1 changed files with 1 additions and 1 deletions

View File

@ -233,7 +233,7 @@ fun OverviewScreen(
item(key = "unreads") { item(key = "unreads") {
OverviewScreenLink( OverviewScreenLink(
onClick = { onClick = {
navController.navigate("catchup") if (hasUnreads) navController.navigate("catchup")
}, },
clickable = hasUnreads, clickable = hasUnreads,
backgroundColour = if (hasUnreads) MaterialTheme.colorScheme.secondaryContainer else MaterialTheme.colorScheme.surfaceVariant, backgroundColour = if (hasUnreads) MaterialTheme.colorScheme.secondaryContainer else MaterialTheme.colorScheme.surfaceVariant,