fix: Improve consistency between pre-release toggles

This commit is contained in:
Ushie
2025-10-03 19:26:31 +03:00
parent df6ecd27dd
commit e1b768c467
2 changed files with 6 additions and 6 deletions

View File

@@ -177,14 +177,14 @@ fun BundleInformationDialog(
}
if (src.isDefault) {
val usePrereleases by prefs.usePatchesPrereleases.getAsState()
val useBundlePrerelease by prefs.usePatchesPrereleases.getAsState()
BundleListItem(
headlineText = stringResource(R.string.patches_prereleases),
supportingText = stringResource(R.string.patches_prereleases_description),
supportingText = stringResource(R.string.patches_prereleases_description, src.name),
trailingContent = {
HapticSwitch(
checked = usePrereleases,
checked = useBundlePrerelease,
onCheckedChange = {
composableScope.launch {
prefs.usePatchesPrereleases.update(
@@ -196,7 +196,7 @@ fun BundleInformationDialog(
},
modifier = Modifier.clickable {
composableScope.launch {
prefs.usePatchesPrereleases.update(!usePrereleases)
prefs.usePatchesPrereleases.update(!useBundlePrerelease)
}
}
)