mirror of
https://github.com/mihonapp/mihon.git
synced 2024-11-29 10:53:14 -05:00
Only apply downloaded only to chapter lists in library
This commit is contained in:
parent
3ba8cff60f
commit
ed6f82af0f
3 changed files with 9 additions and 3 deletions
|
@ -397,7 +397,7 @@ class ChaptersPresenter(
|
||||||
* Whether downloaded only mode is enabled.
|
* Whether downloaded only mode is enabled.
|
||||||
*/
|
*/
|
||||||
fun forceDownloaded(): Boolean {
|
fun forceDownloaded(): Boolean {
|
||||||
return preferences.downloadedOnly().get()
|
return manga.favorite && preferences.downloadedOnly().get()
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -14,6 +14,7 @@ import eu.kanade.tachiyomi.util.preference.iconTint
|
||||||
import eu.kanade.tachiyomi.util.preference.onClick
|
import eu.kanade.tachiyomi.util.preference.onClick
|
||||||
import eu.kanade.tachiyomi.util.preference.preference
|
import eu.kanade.tachiyomi.util.preference.preference
|
||||||
import eu.kanade.tachiyomi.util.preference.preferenceCategory
|
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.switchPreference
|
||||||
import eu.kanade.tachiyomi.util.preference.titleRes
|
import eu.kanade.tachiyomi.util.preference.titleRes
|
||||||
import eu.kanade.tachiyomi.util.system.getResourceColor
|
import eu.kanade.tachiyomi.util.system.getResourceColor
|
||||||
|
@ -30,6 +31,7 @@ class MoreController : SettingsController(), RootController {
|
||||||
switchPreference {
|
switchPreference {
|
||||||
key = Keys.downloadedOnly
|
key = Keys.downloadedOnly
|
||||||
titleRes = R.string.label_downloaded_only
|
titleRes = R.string.label_downloaded_only
|
||||||
|
summaryRes = R.string.downloaded_only_summary
|
||||||
iconRes = R.drawable.ic_cloud_off_24dp
|
iconRes = R.drawable.ic_cloud_off_24dp
|
||||||
iconTint = tintColor
|
iconTint = tintColor
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,7 +12,6 @@
|
||||||
|
|
||||||
<!-- Activities and fragments labels (toolbar title) -->
|
<!-- Activities and fragments labels (toolbar title) -->
|
||||||
<string name="label_more">More</string>
|
<string name="label_more">More</string>
|
||||||
<string name="label_downloaded_only">Downloaded only</string>
|
|
||||||
<string name="label_settings">Settings</string>
|
<string name="label_settings">Settings</string>
|
||||||
<string name="label_download_queue">Download queue</string>
|
<string name="label_download_queue">Download queue</string>
|
||||||
<string name="label_library">Library</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>
|
<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 -->
|
<!-- Login dialog -->
|
||||||
<string name="login_title">Log in to %1$s</string>
|
<string name="login_title">Log in to %1$s</string>
|
||||||
<string name="username">Username</string>
|
<string name="username">Username</string>
|
||||||
|
|
Loading…
Reference in a new issue