mirror of
				https://github.com/mihonapp/mihon.git
				synced 2025-10-30 22:07:57 +01:00 
			
		
		
		
	Remove autoAddTrack preference
This commit is contained in:
		| @@ -99,8 +99,6 @@ object PreferenceKeys { | ||||
|  | ||||
|     const val autoUpdateTrack = "pref_auto_update_manga_sync_key" | ||||
|  | ||||
|     const val autoAddTrack = "pref_auto_add_track_key" | ||||
|  | ||||
|     const val lastUsedSource = "last_catalogue_source" | ||||
|  | ||||
|     const val lastUsedCategory = "last_used_category" | ||||
|   | ||||
| @@ -177,8 +177,6 @@ class PreferencesHelper(val context: Context) { | ||||
|  | ||||
|     fun autoUpdateTrack() = prefs.getBoolean(Keys.autoUpdateTrack, true) | ||||
|  | ||||
|     fun autoAddTrack() = prefs.getBoolean(Keys.autoAddTrack, true) | ||||
|  | ||||
|     fun lastUsedSource() = flowPrefs.getLong(Keys.lastUsedSource, -1) | ||||
|  | ||||
|     fun lastUsedCategory() = flowPrefs.getInt(Keys.lastUsedCategory, 0) | ||||
|   | ||||
| @@ -267,9 +267,7 @@ open class BrowseSourcePresenter( | ||||
|         } else { | ||||
|             ChapterSettingsHelper.applySettingDefaults(manga) | ||||
|  | ||||
|             if (prefs.autoAddTrack()) { | ||||
|                 autoAddTrack(manga) | ||||
|             } | ||||
|             autoAddTrack(manga) | ||||
|         } | ||||
|  | ||||
|         db.insertManga(manga).executeAsBlocking() | ||||
|   | ||||
| @@ -540,7 +540,7 @@ class MangaController : | ||||
|             } | ||||
|         } | ||||
|  | ||||
|         if (source != null && preferences.autoAddTrack()) { | ||||
|         if (source != null) { | ||||
|             presenter.trackList | ||||
|                 .map { it.service } | ||||
|                 .filterIsInstance<EnhancedTrackService>() | ||||
|   | ||||
| @@ -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() | ||||
|   | ||||
		Reference in New Issue
	
	Block a user