mirror of
https://github.com/redstrate/Astra.git
synced 2025-04-26 06:07:45 +00:00
Fix order of operations of asset updater in login process
This commit is contained in:
parent
862cdb35c4
commit
202252503b
1 changed files with 1 additions and 2 deletions
|
@ -342,8 +342,6 @@ void LauncherCore::login(Profile *profile, const QString &username, const QStrin
|
||||||
qDebug() << "Logging in, performing asset update check.";
|
qDebug() << "Logging in, performing asset update check.";
|
||||||
|
|
||||||
auto assetUpdater = new AssetUpdater(*profile, *this, this);
|
auto assetUpdater = new AssetUpdater(*profile, *this, this);
|
||||||
assetUpdater->update();
|
|
||||||
|
|
||||||
connect(assetUpdater, &AssetUpdater::finishedUpdating, this, [this, assetUpdater, profile, username, password, oneTimePassword] {
|
connect(assetUpdater, &AssetUpdater::finishedUpdating, this, [this, assetUpdater, profile, username, password, oneTimePassword] {
|
||||||
qDebug() << "Assets done updating!";
|
qDebug() << "Assets done updating!";
|
||||||
|
|
||||||
|
@ -365,6 +363,7 @@ void LauncherCore::login(Profile *profile, const QString &username, const QStrin
|
||||||
|
|
||||||
assetUpdater->deleteLater();
|
assetUpdater->deleteLater();
|
||||||
});
|
});
|
||||||
|
assetUpdater->update();
|
||||||
}
|
}
|
||||||
|
|
||||||
bool LauncherCore::autoLogin(Profile &profile)
|
bool LauncherCore::autoLogin(Profile &profile)
|
||||||
|
|
Loading…
Add table
Reference in a new issue