mirror of
				https://github.com/mihonapp/mihon.git
				synced 2025-10-31 14:27:57 +01:00 
			
		
		
		
	Add migration to add "all" to enabled langauges
Co-authored-by: Jays2Kings <Jays2Kings@users.noreply.github.com>
This commit is contained in:
		| @@ -7,6 +7,7 @@ import eu.kanade.tachiyomi.data.backup.BackupCreatorJob | ||||
| import eu.kanade.tachiyomi.data.library.LibraryUpdateJob | ||||
| import eu.kanade.tachiyomi.data.preference.PreferenceKeys | ||||
| import eu.kanade.tachiyomi.data.preference.PreferencesHelper | ||||
| import eu.kanade.tachiyomi.data.preference.plusAssign | ||||
| import eu.kanade.tachiyomi.data.track.TrackManager | ||||
| import eu.kanade.tachiyomi.data.updater.UpdaterJob | ||||
| import eu.kanade.tachiyomi.extension.ExtensionUpdateJob | ||||
| @@ -229,6 +230,11 @@ object Migrations { | ||||
|                     putString(PreferenceKeys.librarySortingDirection, newSortingDirection.name) | ||||
|                 } | ||||
|             } | ||||
|             if (oldVersion < 70) { | ||||
|                 if (preferences.enabledLanguages().isSet()) { | ||||
|                     preferences.enabledLanguages() += "all" | ||||
|                 } | ||||
|             } | ||||
|  | ||||
|             return true | ||||
|         } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user