2
0
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:
John Preston
2020-03-03 16:07:22 +04:00
parent 11d31ffc84
commit d4b9b65724
42 changed files with 235 additions and 65 deletions

View File

@@ -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();
}