Albirew/tachiyomi
Archivé
1
0
Bifurcation 0

Only apply downloaded only to chapter lists in library

Cette révision appartient à :
arkon 2020-04-27 20:06:47 -04:00
Parent 3ba8cff60f
révision ed6f82af0f
3 fichiers modifiés avec 9 ajouts et 3 suppressions

Voir le fichier

@ -397,7 +397,7 @@ class ChaptersPresenter(
* Whether downloaded only mode is enabled.
*/
fun forceDownloaded(): Boolean {
return preferences.downloadedOnly().get()
return manga.favorite && preferences.downloadedOnly().get()
}
/**

Voir le fichier

@ -14,6 +14,7 @@ import eu.kanade.tachiyomi.util.preference.iconTint
import eu.kanade.tachiyomi.util.preference.onClick
import eu.kanade.tachiyomi.util.preference.preference
import eu.kanade.tachiyomi.util.preference.preferenceCategory
import eu.kanade.tachiyomi.util.preference.summaryRes
import eu.kanade.tachiyomi.util.preference.switchPreference
import eu.kanade.tachiyomi.util.preference.titleRes
import eu.kanade.tachiyomi.util.system.getResourceColor
@ -30,6 +31,7 @@ class MoreController : SettingsController(), RootController {
switchPreference {
key = Keys.downloadedOnly
titleRes = R.string.label_downloaded_only
summaryRes = R.string.downloaded_only_summary
iconRes = R.drawable.ic_cloud_off_24dp
iconTint = tintColor
}

Voir le fichier

@ -12,7 +12,6 @@
<!-- Activities and fragments labels (toolbar title) -->
<string name="label_more">More</string>
<string name="label_downloaded_only">Downloaded only</string>
<string name="label_settings">Settings</string>
<string name="label_download_queue">Download queue</string>
<string name="label_library">Library</string>
@ -364,6 +363,11 @@
<string name="pref_acra_summary">Helps fix any bugs. No sensitive data will be sent</string>
<!-- More -->
<string name="label_downloaded_only">Downloaded only</string>
<string name="downloaded_only_summary">Filters all manga in your library</string>
<!-- Login dialog -->
<string name="login_title">Log in to %1$s</string>
<string name="username">Username</string>