mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-25 06:54:43 +00:00
Don't jump in filters list on list change.
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user