Only apply downloaded only to chapter lists in library

This commit is contained in:
arkon 2020-04-27 20:06:47 -04:00
parent 3ba8cff60f
commit ed6f82af0f
3 changed files with 9 additions and 3 deletions

View File

@ -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()
}
/**

View File

@ -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
}

View File

@ -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>