Fix filtering of search results in SectionedInspector

This commit is contained in:
booer 2020-09-02 15:31:34 +07:00
parent 39228830ce
commit 7f226d0a85

View file

@ -238,7 +238,7 @@ void SectionedInspector::update_category_list() {
continue;
}
if (!filter.empty() && !filter.is_subsequence_ofi(pi.name) && !filter.is_subsequence_ofi(pi.name.replace("/", " ").capitalize())) {
if (!filter.empty() && pi.name.findn(filter) == -1 && pi.name.replace("/", " ").capitalize().findn(filter) == -1) {
continue;
}