From 202252503bcaf04230246bd5336d2eaf07e26e84 Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Mon, 31 Jul 2023 19:24:37 -0400 Subject: [PATCH] Fix order of operations of asset updater in login process --- launcher/src/launchercore.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/launcher/src/launchercore.cpp b/launcher/src/launchercore.cpp index 33100dc..a0bd030 100755 --- a/launcher/src/launchercore.cpp +++ b/launcher/src/launchercore.cpp @@ -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)