reapply filter even if it's the same as the last one applied
This commit is contained in:
@@ -671,8 +671,6 @@ template <typename T> void NCurses::Menu<T>::PrevFound(bool wrap)
|
||||
|
||||
template <typename T> void NCurses::Menu<T>::ApplyFilter(const std::string &filter, size_t beginning, int flags)
|
||||
{
|
||||
if (filter == itsFilter)
|
||||
return;
|
||||
itsFound.clear();
|
||||
ClearFiltered();
|
||||
itsFilter = filter;
|
||||
|
||||
@@ -65,7 +65,12 @@ void StatusbarGetStringHelper(const std::wstring &)
|
||||
|
||||
void StatusbarApplyFilterImmediately(const std::wstring &ws)
|
||||
{
|
||||
myScreen->ApplyFilter(ToString(ws));
|
||||
static std::wstring cmp;
|
||||
if (cmp != ws)
|
||||
{
|
||||
myScreen->ApplyFilter(ToString(ws));
|
||||
cmp = ws;
|
||||
}
|
||||
myScreen->RefreshWindow();
|
||||
TraceMpdStatus();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user