mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 06:07:06 +02:00
Don't jump in filters list on list change.
This commit is contained in:
parent
e351ad1f3d
commit
6f4eef035d
1 changed files with 0 additions and 5 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Reference in a new issue