2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Added new Adaptive class to replace legacy Adaptive namespace.

Temporarily named class as AdaptiveModern.
This commit is contained in:
23rd
2021-05-27 02:16:12 +03:00
parent d2c8780c0f
commit 2d90a06078
7 changed files with 111 additions and 0 deletions

View File

@@ -41,6 +41,7 @@ namespace Window {
Controller::Controller()
: _widget(this)
, _adaptive(std::make_unique<AdaptiveModern>())
, _isActiveTimer([=] { updateIsActive(); }) {
_widget.init();
}
@@ -367,4 +368,8 @@ void Controller::showLogoutConfirmation() {
callback));
}
Window::AdaptiveModern &Controller::adaptive() const {
return *_adaptive;
}
} // namespace Window