Skip to content

Commit

Permalink
add Delegated src off condition
Browse files Browse the repository at this point in the history
  • Loading branch information
Riztard committed Jun 7, 2024
1 parent c26f816 commit 58dd64f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions app/src/main/java/eu/kanade/presentation/more/MoreScreen.kt
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ import eu.kanade.presentation.more.settings.widget.SwitchPreferenceWidget
import eu.kanade.presentation.more.settings.widget.TextPreferenceWidget
import eu.kanade.tachiyomi.R
import eu.kanade.tachiyomi.ui.more.DownloadQueueState
import exh.pref.DelegateSourcePreferences
import tachiyomi.core.common.Constants
import tachiyomi.domain.UnsortedPreferences
import tachiyomi.i18n.MR
Expand Down Expand Up @@ -69,7 +70,10 @@ fun MoreScreen(
onClickHistory: () -> Unit,
) {
val uriHandler = LocalUriHandler.current
val unsortedPreferences = remember { Injekt.get<UnsortedPreferences>() } // SY
// SY -->
val unsortedPreferences = remember { Injekt.get<UnsortedPreferences>() }
val delegateSourcePreferences = remember { Injekt.get<DelegateSourcePreferences>() }
// SY <--

Scaffold(
topBar = {
Expand Down Expand Up @@ -190,7 +194,7 @@ fun MoreScreen(
)
}
// SY -->
if (unsortedPreferences.isHentaiEnabled().get()) {
if (unsortedPreferences.isHentaiEnabled().get() && delegateSourcePreferences.delegateSources().get()) {
item {
TextPreferenceWidget(
title = stringResource(SYMR.strings.eh_batch_add),
Expand Down

0 comments on commit 58dd64f

Please sign in to comment.