Fixed once again unwanted reset filter on creation of tabs strip.

Regression was introduced in c0bbb669e0.
This commit is contained in:
23rd
2025-11-29 08:17:50 +03:00
parent 6e75a41ee6
commit fd52b3c23b
2 changed files with 4 additions and 1 deletions

View File

@@ -1677,6 +1677,7 @@ void Widget::toggleFiltersMenu(bool enabled) {
_chatFilters = base::make_unique_q<NoScrollPropagationWidget>(this);
const auto raw = _chatFilters.get();
const auto idBeforeTabs = controller()->activeChatsFilterCurrent();
const auto inner = Ui::AddChatFiltersTabsStrip(
_chatFilters.get(),
&session(),
@@ -1689,6 +1690,9 @@ void Widget::toggleFiltersMenu(bool enabled) {
Window::GifPauseReason::Any,
controller(),
true);
if (controller()->activeChatsFilterCurrent() != idBeforeTabs) {
controller()->setActiveChatsFilter(idBeforeTabs);
}
raw->show();
raw->stackUnder(_scroll);
raw->resizeToWidth(width());