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:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user