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
|
||||
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
|
||||
}?.trim()
|
||||
val filterList = state.value.listing.filters.ifEmpty { source.getFilterList() }
|
||||
val filterList = state.value.filters.ifEmpty { source.getFilterList() }
|
||||
insertSavedSearch.await(
|
||||
SavedSearch(
|
||||
id = -1,
|
||||
|
Loading…
x
Reference in New Issue
Block a user