Fix resetting filter resets browse pager (#8394)

Fix resetinf filter resets browse pager
This commit is contained in:
AntsyLich 2022-11-01 03:22:53 +06:00 committed by GitHub
parent ebb96a6ff4
commit afcf4b2988
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -156,8 +156,6 @@ open class BrowseSourcePresenter(
fun reset() { fun reset() {
val source = source ?: return val source = source ?: return
state.filters = source.getFilterList() state.filters = source.getFilterList()
if (currentFilter !is Filter.UserInput) return
state.currentFilter = (currentFilter as Filter.UserInput).copy(filters = state.filters)
} }
fun search(query: String? = null, filters: FilterList? = null) { fun search(query: String? = null, filters: FilterList? = null) {