Use refresh instead of requestRefresh on LaunchController::login

There should be no reason to queue it and it could cause problems with the launcher's rate limiting

Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
This commit is contained in:
TheKodeToad 2025-03-03 20:24:07 +00:00
parent 3840d8a37a
commit cb77cc1219
No known key found for this signature in database
GPG Key ID: 5E39D70B4C93C38E

View File

@ -200,8 +200,7 @@ void LaunchController::login()
m_accountToUse->shouldRefresh()) { m_accountToUse->shouldRefresh()) {
// Force account refresh on the account used to launch the instance updating the AccountState // Force account refresh on the account used to launch the instance updating the AccountState
// only on first try and if it is not meant to be offline // only on first try and if it is not meant to be offline
auto accounts = APPLICATION->accounts(); m_accountToUse->refresh();
accounts->requestRefresh(m_accountToUse->internalId());
} }
while (tryagain) { while (tryagain) {
if (tries > 0 && tries % 3 == 0) { if (tries > 0 && tries % 3 == 0) {