mirror of
https://github.com/mihonapp/mihon.git
synced 2024-11-10 12:47:26 +01:00
Only apply downloaded only to chapter lists in library
This commit is contained in:
parent
3ba8cff60f
commit
ed6f82af0f
@ -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>
|
||||||
@ -305,7 +304,7 @@
|
|||||||
<string name="pref_auto_update_manga_sync">Sync chapters after reading</string>
|
<string name="pref_auto_update_manga_sync">Sync chapters after reading</string>
|
||||||
<string name="services">Services</string>
|
<string name="services">Services</string>
|
||||||
|
|
||||||
<!-- Backup section -->
|
<!-- Backup section -->
|
||||||
<string name="backup">Backup</string>
|
<string name="backup">Backup</string>
|
||||||
<string name="pref_create_backup">Create backup</string>
|
<string name="pref_create_backup">Create backup</string>
|
||||||
<string name="pref_create_backup_summ">Can be used to restore current library</string>
|
<string name="pref_create_backup_summ">Can be used to restore current 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 New Issue
Block a user