Use current filters and toolbar query for saved searches
This commit is contained in:
parent
5893350f43
commit
fea36ad138
@ -563,10 +563,10 @@ open class BrowseSourceScreenModel(
|
|||||||
) {
|
) {
|
||||||
if (source !is CatalogueSource) return
|
if (source !is CatalogueSource) return
|
||||||
coroutineScope.launchNonCancellable {
|
coroutineScope.launchNonCancellable {
|
||||||
val query = state.value.listing.query?.takeUnless {
|
val query = state.value.toolbarQuery?.takeUnless {
|
||||||
it.isBlank() || it == GetRemoteManga.QUERY_POPULAR || it == GetRemoteManga.QUERY_LATEST
|
it.isBlank() || it == GetRemoteManga.QUERY_POPULAR || it == GetRemoteManga.QUERY_LATEST
|
||||||
}?.trim()
|
}?.trim()
|
||||||
val filterList = state.value.listing.filters.ifEmpty { source.getFilterList() }
|
val filterList = state.value.filters.ifEmpty { source.getFilterList() }
|
||||||
insertSavedSearch.await(
|
insertSavedSearch.await(
|
||||||
SavedSearch(
|
SavedSearch(
|
||||||
id = -1,
|
id = -1,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user