mirror of
https://github.com/revanced/revanced-manager-compose-old.git
synced 2025-04-29 22:14:28 +02:00
fix: prevent switching to same screen again
This commit is contained in:
parent
9afe97f47b
commit
7ab481ea0b
@ -51,7 +51,11 @@ fun MainDashboardScreen(
|
||||
)
|
||||
},
|
||||
label = { Text(stringResource(destination.label)) },
|
||||
onClick = { onNavChanged(destination) }
|
||||
onClick = {
|
||||
if (destination != currentDestination) {
|
||||
onNavChanged(destination)
|
||||
}
|
||||
}
|
||||
)
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user