MCPcopy Create free account
hub / github.com/FreesmTeam/FreesmLauncher / fillQueue

Method fillQueue

launcher/minecraft/auth/AccountList.cpp:588–608  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

586}
587
588void AccountList::fillQueue()
589{
590 if (m_defaultAccount && m_defaultAccount->shouldRefresh()) {
591 auto idToRefresh = m_defaultAccount->internalId();
592 m_refreshQueue.push_back(idToRefresh);
593 qDebug() << "AccountList: Queued default account with internal ID " << idToRefresh << " to refresh first";
594 }
595
596 for (int i = 0; i < count(); i++) {
597 auto account = at(i);
598 if (account == m_defaultAccount) {
599 continue;
600 }
601
602 if (account->shouldRefresh()) {
603 auto idToRefresh = account->internalId();
604 queueRefresh(idToRefresh);
605 }
606 }
607 tryNext();
608}
609
610void AccountList::requestRefresh(QString accountId)
611{

Callers 1

ApplicationMethod · 0.80

Calls 2

shouldRefreshMethod · 0.80
internalIdMethod · 0.80

Tested by

no test coverage detected