MCPcopy Create free account
hub / github.com/MultiMC/Launcher / fillQueue

Method fillQueue

launcher/minecraft/auth/AccountList.cpp:642–662  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

640}
641
642void AccountList::fillQueue() {
643
644 if(m_defaultAccount && m_defaultAccount->shouldRefresh()) {
645 auto idToRefresh = m_defaultAccount->internalId();
646 m_refreshQueue.push_back(idToRefresh);
647 qDebug() << "AccountList: Queued default account with internal ID " << idToRefresh << " to refresh first";
648 }
649
650 for(int i = 0; i < count(); i++) {
651 auto account = at(i);
652 if(account == m_defaultAccount) {
653 continue;
654 }
655
656 if(account->shouldRefresh()) {
657 auto idToRefresh = account->internalId();
658 queueRefresh(idToRefresh);
659 }
660 }
661 tryNext();
662}
663
664void AccountList::requestRefresh(QString accountId) {
665 auto index = m_refreshQueue.indexOf(accountId);

Callers 1

ApplicationMethod · 0.80

Calls 2

shouldRefreshMethod · 0.80
internalIdMethod · 0.80

Tested by

no test coverage detected