Add option for library update only update completely read manga (#6323)

* Add option for library update only update completely read manga

only check manga for updates if there is no unread chapter

* sum
This commit is contained in:
Riztard Lanthorn
2021-12-17 21:40:54 +07:00
committed by GitHub
parent 38d131be37
commit 6fddad7a77
5 changed files with 16 additions and 0 deletions
@@ -101,6 +101,8 @@ object PreferenceKeys {
const val updateOnlyNonCompleted = "pref_update_only_non_completed_key"
const val updateOnlyCompletelyRead = "pref_update_only_completely_read"
const val autoUpdateTrack = "pref_auto_update_manga_sync_key"
const val lastUsedSource = "last_catalogue_source"
@@ -179,6 +179,8 @@ class PreferencesHelper(val context: Context) {
fun updateOnlyNonCompleted() = prefs.getBoolean(Keys.updateOnlyNonCompleted, true)
fun updateOnlyCompletelyRead() = prefs.getBoolean(Keys.updateOnlyCompletelyRead, true)
fun autoUpdateTrack() = prefs.getBoolean(Keys.autoUpdateTrack, true)
fun lastUsedSource() = flowPrefs.getLong(Keys.lastUsedSource, -1)