mirror of
				https://github.com/mihonapp/mihon.git
				synced 2025-11-04 08:08:55 +01:00 
			
		
		
		
	Fix total item count in library app bar (#8117)
This commit is contained in:
		@@ -631,7 +631,7 @@ class LibraryPresenter(
 | 
			
		||||
            val count = when {
 | 
			
		||||
                category == null || mangaCountVisibility.not() -> null
 | 
			
		||||
                tabVisibility.not() -> loadedManga[category.id]?.size
 | 
			
		||||
                else -> loadedManga.values.flatten().distinct().size
 | 
			
		||||
                else -> loadedManga.values.flatten().distinctBy { it.manga.id }.size
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
            value = when (category) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user