Add a button to select all scanlators

Resolves #943
Closes #1109

(cherry picked from commit 84b2164787a795f3fd757c325cbfb6ef660ac3a3)
This commit is contained in:
AntsyLich 2024-08-12 02:50:45 +06:00 committed by Jobobby04
parent f1b32d531a
commit 49bdffdc28

View File

@ -111,9 +111,15 @@ fun ScanlatorFilterDialog(
}
} else {
FlowRow {
if (mutableExcludedScanlators.isEmpty()) {
TextButton(onClick = { mutableExcludedScanlators.addAll(availableScanlators) }) {
Text(text = stringResource(MR.strings.action_select_all))
}
} else {
TextButton(onClick = mutableExcludedScanlators::clear) {
Text(text = stringResource(MR.strings.action_reset))
}
}
Spacer(modifier = Modifier.weight(1f))
TextButton(onClick = onDismissRequest) {
Text(text = stringResource(MR.strings.action_cancel))