Removed chats filters strip from forum layout.

This commit is contained in:
23rd 2024-11-13 10:54:12 +03:00
parent 49223a4688
commit cf270bd9ce
2 changed files with 4 additions and 1 deletions

View file

@ -1301,6 +1301,9 @@ void Widget::updateHasFocus(not_null<QWidget*> focused) {
}
void Widget::toggleFiltersMenu(bool enabled) {
if (_layout == Layout::Child) {
enabled = false;
}
if (!enabled == !_chatFilters) {
return;
} else if (enabled) {

View file

@ -296,7 +296,7 @@ private:
bool _dragForward = false;
base::Timer _chooseByDragTimer;
Layout _layout = Layout::Main;
const Layout _layout = Layout::Main;
int _narrowWidth = 0;
object_ptr<Ui::RpWidget> _searchControls;
object_ptr<HistoryView::TopBarWidget> _subsectionTopBar = { nullptr };