mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2025-05-29 21:30:18 +02:00
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:
parent
3840d8a37a
commit
cb77cc1219
@ -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) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user