save choice made by user

This commit is contained in:
Cuong-Tran 2024-10-19 09:51:55 +07:00
parent 11f1d0536e
commit 88c91f6d77
No known key found for this signature in database
GPG Key ID: 733AA7624B9315C2

View File

@ -118,7 +118,7 @@ abstract class SearchScreenModel(
}
fun setSourceFilter(filter: SourceFilter) {
mutableState.update { it.copy(sourceFilter = filter) }
preferences.globalSearchPinnedState().set(filter)
search()
}