2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

Move some more settings to Core::App.

This commit is contained in:
John Preston
2020-06-25 16:16:09 +04:00
parent 90a9cb4f8d
commit 5d6a494934
15 changed files with 334 additions and 323 deletions

View File

@@ -284,8 +284,9 @@ void MainWindow::setupMain() {
auto animated = (_intro || _passcodeLock);
auto bg = animated ? grabInner() : QPixmap();
auto created = object_ptr<MainWidget>(bodyWidget(), sessionController());
clearWidgets();
_main.create(bodyWidget(), sessionController());
_main = std::move(created);
if (_passcodeLock) {
_main->hide();
} else {