mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-02 23:45:44 +00:00
First version of the filters side bar.
This commit is contained in:
@@ -31,6 +31,11 @@ Controller::Controller(not_null<Main::Account*> account)
|
||||
_sessionController = session
|
||||
? std::make_unique<SessionController>(session, this)
|
||||
: nullptr;
|
||||
if (_sessionController && Global::DialogsFiltersEnabled()) {
|
||||
_sessionController->toggleFiltersMenu(true);
|
||||
} else {
|
||||
sideBarChanged();
|
||||
}
|
||||
_widget.updateWindowIcon();
|
||||
}, _lifetime);
|
||||
|
||||
@@ -86,6 +91,11 @@ void Controller::showRightColumn(object_ptr<TWidget> widget) {
|
||||
_widget.showRightColumn(std::move(widget));
|
||||
}
|
||||
|
||||
void Controller::sideBarChanged() {
|
||||
_widget.setMinimumWidth(_widget.computeMinWidth());
|
||||
_widget.updateControlsGeometry();
|
||||
}
|
||||
|
||||
void Controller::activate() {
|
||||
_widget.activate();
|
||||
}
|
||||
|
Reference in New Issue
Block a user