1
Fork 0
mirror of https://github.com/redstrate/Astra.git synced 2025-04-25 13:57:45 +00:00

Fix order of operations of asset updater in login process

This commit is contained in:
Joshua Goins 2023-07-31 19:24:37 -04:00
parent 862cdb35c4
commit 202252503b

View file

@ -342,8 +342,6 @@ void LauncherCore::login(Profile *profile, const QString &username, const QStrin
qDebug() << "Logging in, performing asset update check.";
auto assetUpdater = new AssetUpdater(*profile, *this, this);
assetUpdater->update();
connect(assetUpdater, &AssetUpdater::finishedUpdating, this, [this, assetUpdater, profile, username, password, oneTimePassword] {
qDebug() << "Assets done updating!";
@ -365,6 +363,7 @@ void LauncherCore::login(Profile *profile, const QString &username, const QStrin
assetUpdater->deleteLater();
});
assetUpdater->update();
}
bool LauncherCore::autoLogin(Profile &profile)