mirror of
				https://github.com/mihonapp/mihon.git
				synced 2025-10-31 14:27:57 +01:00 
			
		
		
		
	Fixed All Sources in Filter list
This commit is contained in:
		| @@ -50,6 +50,7 @@ class SettingsSourcesController : SettingsController() { | ||||
|  | ||||
|         sorting = SourcesSort.from(preferences.sourceSorting().get()) ?: SourcesSort.Alpha | ||||
|         activity?.invalidateOptionsMenu() | ||||
|  | ||||
|         // Get the list of active language codes. | ||||
|         val activeLangsCodes = preferences.enabledLanguages().get() | ||||
|  | ||||
| @@ -115,11 +116,11 @@ class SettingsSourcesController : SettingsController() { | ||||
|  | ||||
|             onChange { newValue -> | ||||
|                 val checked = newValue as Boolean | ||||
|                 val current = preferences.hiddenCatalogues().get() ?: mutableSetOf() | ||||
|                 val current = preferences.hiddenCatalogues().get() as MutableSet? ?: mutableSetOf() | ||||
|                 if (checked) { | ||||
|                     current.minus(sources.map { it.id.toString() }) | ||||
|                     current.removeAll(sources.map { it.id.toString() }) | ||||
|                 } else { | ||||
|                     current.plus(sources.map { it.id.toString() }) | ||||
|                     current.addAll(sources.map { it.id.toString() }) | ||||
|                 } | ||||
|                 preferences.hiddenCatalogues().set(current) | ||||
|                 group.removeAll() | ||||
|   | ||||
		Reference in New Issue
	
	Block a user