mirror of
https://github.com/mihonapp/mihon.git
synced 2024-11-21 20:47:03 -05:00
parent
200d39e023
commit
84b2164787
1 changed files with 8 additions and 2 deletions
|
@ -108,9 +108,15 @@ fun ScanlatorFilterDialog(
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
FlowRow {
|
FlowRow {
|
||||||
|
if (mutableExcludedScanlators.isEmpty()) {
|
||||||
|
TextButton(onClick = { mutableExcludedScanlators.addAll(availableScanlators) }) {
|
||||||
|
Text(text = stringResource(MR.strings.action_select_all))
|
||||||
|
}
|
||||||
|
} else {
|
||||||
TextButton(onClick = mutableExcludedScanlators::clear) {
|
TextButton(onClick = mutableExcludedScanlators::clear) {
|
||||||
Text(text = stringResource(MR.strings.action_reset))
|
Text(text = stringResource(MR.strings.action_reset))
|
||||||
}
|
}
|
||||||
|
}
|
||||||
Spacer(modifier = Modifier.weight(1f))
|
Spacer(modifier = Modifier.weight(1f))
|
||||||
TextButton(onClick = onDismissRequest) {
|
TextButton(onClick = onDismissRequest) {
|
||||||
Text(text = stringResource(MR.strings.action_cancel))
|
Text(text = stringResource(MR.strings.action_cancel))
|
||||||
|
|
Loading…
Reference in a new issue