Filter effects in current category only.

Related to #541
parent 78f8880a
Pipeline #14261 canceled with stage
......@@ -68,7 +68,10 @@ bool EffectFilter::filterType(const std::shared_ptr<TreeItem> &item) const
bool EffectFilter::applyAll(std::shared_ptr<TreeItem> item) const
{
if (!m_name_value.isEmpty()) {
return filterName(item);
if (m_type_value == EffectType::Preferred) {
return filterName(item);
}
return filterType(item) && filterName(item);
} else {
return filterType(item);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment