mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 22:27:20 +02:00
Fix first main window appearance.
This commit is contained in:
parent
ab5796c117
commit
5e045ec02c
3 changed files with 4 additions and 4 deletions
|
@ -44,14 +44,14 @@ Storage::StartResult Accounts::start(const QByteArray &passcode) {
|
|||
if (result == Storage::StartResult::Success) {
|
||||
Assert(started());
|
||||
|
||||
activate(active);
|
||||
|
||||
for (const auto &[index, account] : _accounts) {
|
||||
account->startMtp();
|
||||
}
|
||||
if (Local::oldSettingsVersion() < AppVersion) {
|
||||
Local::writeSettings();
|
||||
}
|
||||
|
||||
activate(active);
|
||||
} else {
|
||||
Assert(!started());
|
||||
}
|
||||
|
|
|
@ -108,8 +108,6 @@ Session::Session(
|
|||
}
|
||||
});
|
||||
|
||||
Window::Theme::Background()->start();
|
||||
|
||||
#ifndef TDESKTOP_DISABLE_SPELLCHECK
|
||||
Spellchecker::Start(this);
|
||||
#endif // TDESKTOP_DISABLE_SPELLCHECK
|
||||
|
|
|
@ -39,6 +39,8 @@ Controller::~Controller() {
|
|||
}
|
||||
|
||||
void Controller::showAccount(not_null<Main::Account*> account) {
|
||||
Window::Theme::Background()->start();
|
||||
|
||||
_accountLifetime.destroy();
|
||||
_account = account;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue