Remove autoAddTrack preference

This commit is contained in:
arkon
2021-07-18 15:00:07 -04:00
parent fcd6fe5d8a
commit dce3049446
6 changed files with 3 additions and 16 deletions

View File

@@ -267,9 +267,7 @@ open class BrowseSourcePresenter(
} else {
ChapterSettingsHelper.applySettingDefaults(manga)
if (prefs.autoAddTrack()) {
autoAddTrack(manga)
}
autoAddTrack(manga)
}
db.insertManga(manga).executeAsBlocking()

View File

@@ -540,7 +540,7 @@ class MangaController :
}
}
if (source != null && preferences.autoAddTrack()) {
if (source != null) {
presenter.trackList
.map { it.service }
.filterIsInstance<EnhancedTrackService>()

View File

@@ -76,12 +76,6 @@ class SettingsTrackingController :
preferenceCategory {
titleRes = R.string.enhanced_services
switchPreference {
key = Keys.autoAddTrack
titleRes = R.string.pref_auto_add_track
defaultValue = true
}
trackPreference(trackManager.komga) {
val acceptedSources = trackManager.komga.getAcceptedSources()
val hasValidSourceInstalled = sourceManager.getCatalogueSources()