mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Removed chats filters strip from forum layout.
This commit is contained in:
parent
49223a4688
commit
cf270bd9ce
2 changed files with 4 additions and 1 deletions
|
@ -1301,6 +1301,9 @@ void Widget::updateHasFocus(not_null<QWidget*> focused) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void Widget::toggleFiltersMenu(bool enabled) {
|
void Widget::toggleFiltersMenu(bool enabled) {
|
||||||
|
if (_layout == Layout::Child) {
|
||||||
|
enabled = false;
|
||||||
|
}
|
||||||
if (!enabled == !_chatFilters) {
|
if (!enabled == !_chatFilters) {
|
||||||
return;
|
return;
|
||||||
} else if (enabled) {
|
} else if (enabled) {
|
||||||
|
|
|
@ -296,7 +296,7 @@ private:
|
||||||
bool _dragForward = false;
|
bool _dragForward = false;
|
||||||
base::Timer _chooseByDragTimer;
|
base::Timer _chooseByDragTimer;
|
||||||
|
|
||||||
Layout _layout = Layout::Main;
|
const Layout _layout = Layout::Main;
|
||||||
int _narrowWidth = 0;
|
int _narrowWidth = 0;
|
||||||
object_ptr<Ui::RpWidget> _searchControls;
|
object_ptr<Ui::RpWidget> _searchControls;
|
||||||
object_ptr<HistoryView::TopBarWidget> _subsectionTopBar = { nullptr };
|
object_ptr<HistoryView::TopBarWidget> _subsectionTopBar = { nullptr };
|
||||||
|
|
Loading…
Add table
Reference in a new issue