mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-12-25 14:21:50 +01:00
Fixed default category sort not sticking
This commit is contained in:
parent
943dcff33e
commit
7a03231ede
@ -627,7 +627,7 @@ class LibraryPresenter(
|
|||||||
val sort = category.sortingMode() ?: LibrarySort.ALPHA
|
val sort = category.sortingMode() ?: LibrarySort.ALPHA
|
||||||
preferences.librarySortingMode().set(sort)
|
preferences.librarySortingMode().set(sort)
|
||||||
preferences.librarySortingAscending().set(category.isAscending())
|
preferences.librarySortingAscending().set(category.isAscending())
|
||||||
} else if (catId > 0) {
|
} else if (catId >= 0) {
|
||||||
if (category.id == 0) preferences.defaultMangaOrder().set(category.mangaSort.toString())
|
if (category.id == 0) preferences.defaultMangaOrder().set(category.mangaSort.toString())
|
||||||
else Injekt.get<DatabaseHelper>().insertCategory(category).executeAsBlocking()
|
else Injekt.get<DatabaseHelper>().insertCategory(category).executeAsBlocking()
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user