Fixed default category sort not sticking
This commit is contained in:
parent
943dcff33e
commit
7a03231ede
1 changed files with 1 additions and 1 deletions
|
@ -627,7 +627,7 @@ class LibraryPresenter(
|
|||
val sort = category.sortingMode() ?: LibrarySort.ALPHA
|
||||
preferences.librarySortingMode().set(sort)
|
||||
preferences.librarySortingAscending().set(category.isAscending())
|
||||
} else if (catId > 0) {
|
||||
} else if (catId >= 0) {
|
||||
if (category.id == 0) preferences.defaultMangaOrder().set(category.mangaSort.toString())
|
||||
else Injekt.get<DatabaseHelper>().insertCategory(category).executeAsBlocking()
|
||||
}
|
||||
|
|
Reference in a new issue