Don't jump in filters list on list change.

This commit is contained in:
John Preston 2023-04-05 12:54:15 +04:00
parent e351ad1f3d
commit 6f4eef035d
1 changed files with 0 additions and 5 deletions

View File

@ -235,11 +235,6 @@ void FiltersMenu::refresh() {
// After the filters are refreshed, the scroll is reset,
// so we have to restore it.
_scroll.scrollToY(oldTop);
const auto i = _filters.find(_activeFilterId);
const auto button = ((i != end(_filters)) ? i->second.get() : nullptr);
if (button) {
scrollToButton(button);
}
}
void FiltersMenu::setupList() {