Fixed default category sort not sticking

This commit is contained in:
Jay 2020-05-01 14:11:46 -04:00
parent 943dcff33e
commit 7a03231ede

View File

@ -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()
}