Option to disable related manga

This commit is contained in:
Koitharu
2023-08-14 14:18:09 +03:00
parent e1efb5fb1e
commit 7e31b1384e
4 changed files with 13 additions and 2 deletions

View File

@@ -167,7 +167,7 @@ class DetailsViewModel @Inject constructor(
it?.remote
}.distinctUntilChangedBy { it?.id }
.mapLatest {
if (it != null) {
if (it != null && settings.isRelatedMangaEnabled) {
relatedMangaUseCase.invoke(it)?.toUi(ListMode.GRID, extraProvider).orEmpty()
} else {
emptyList()