ScanlatorFilterDialog: Fix crash when no scanlator (#10111)
This commit is contained in:
parent
8f22480ec9
commit
d7442d771b
@ -106,13 +106,12 @@ fun ScanlatorFilterDialog(
|
|||||||
usePlatformDefaultWidth = true,
|
usePlatformDefaultWidth = true,
|
||||||
),
|
),
|
||||||
confirmButton = {
|
confirmButton = {
|
||||||
FlowRow {
|
|
||||||
if (sortedAvailableScanlators.isEmpty()) {
|
if (sortedAvailableScanlators.isEmpty()) {
|
||||||
TextButton(onClick = onDismissRequest) {
|
TextButton(onClick = onDismissRequest) {
|
||||||
Text(text = stringResource(R.string.action_cancel))
|
Text(text = stringResource(R.string.action_cancel))
|
||||||
}
|
}
|
||||||
return@FlowRow
|
} else {
|
||||||
}
|
FlowRow {
|
||||||
TextButton(onClick = mutableExcludedScanlators::clear) {
|
TextButton(onClick = mutableExcludedScanlators::clear) {
|
||||||
Text(text = stringResource(R.string.action_reset))
|
Text(text = stringResource(R.string.action_reset))
|
||||||
}
|
}
|
||||||
@ -129,6 +128,7 @@ fun ScanlatorFilterDialog(
|
|||||||
Text(text = stringResource(R.string.action_ok))
|
Text(text = stringResource(R.string.action_ok))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user