Minor fixes
- Fix categories modal showing when adding from source with no categories
- Use old categories icon in library bottom action menu
(cherry picked from commit 688cc64dff)
# Conflicts:
# app/src/main/java/eu/kanade/presentation/components/MangaBottomActionMenu.kt
# app/src/main/java/eu/kanade/tachiyomi/App.kt
This commit is contained in:
@@ -201,6 +201,7 @@ class FavoritesSyncHelper(val context: Context) {
|
||||
|
||||
private suspend fun applyRemoteCategories(categories: List<String>) {
|
||||
val localCategories = getCategories.await()
|
||||
.filterNot(Category::isSystemCategory)
|
||||
|
||||
categories.forEachIndexed { index, remote ->
|
||||
val local = localCategories.getOrElse(index) {
|
||||
@@ -346,6 +347,7 @@ class FavoritesSyncHelper(val context: Context) {
|
||||
|
||||
val insertedMangaCategories = mutableListOf<Pair<Long, Manga>>()
|
||||
val categories = getCategories.await()
|
||||
.filterNot(Category::isSystemCategory)
|
||||
|
||||
// Apply additions
|
||||
throttleManager.resetThrottle()
|
||||
|
||||
Reference in New Issue
Block a user