add allowsFiltering / allowsSearching checks
This commit is contained in:
@@ -267,6 +267,11 @@ void Browser::MouseButtonPressed(MEVENT me)
|
||||
|
||||
/***********************************************************************/
|
||||
|
||||
bool Browser::allowsFiltering()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
std::string Browser::currentFilter()
|
||||
{
|
||||
return RegexFilter<MPD::Item>::currentFilter(*w);
|
||||
@@ -282,6 +287,11 @@ void Browser::applyFilter(const std::string &filter)
|
||||
|
||||
/***********************************************************************/
|
||||
|
||||
bool Browser::allowsSearching()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
bool Browser::search(const std::string &constraint)
|
||||
{
|
||||
auto fun = std::bind(BrowserEntryMatcher, _1, _2, false);
|
||||
|
||||
Reference in New Issue
Block a user