MCPcopy Create free account
hub / github.com/PolyMC/PolyMC / onRequestDone

Method onRequestDone

launcher/minecraft/auth/steps/MigrationEligibilityStep.cpp:33–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31}
32
33void MigrationEligibilityStep::onRequestDone(
34 QNetworkReply::NetworkError error,
35 QByteArray data,
36 QList<QNetworkReply::RawHeaderPair> headers
37) {
38 auto requestor = qobject_cast<AuthRequest *>(QObject::sender());
39 requestor->deleteLater();
40
41 if (error == QNetworkReply::NoError) {
42 Parsers::parseRolloutResponse(data, m_data->canMigrateToMSA);
43 }
44 emit finished(AccountTaskState::STATE_WORKING, tr("Got migration flags"));
45}

Callers

nothing calls this directly

Calls 1

parseRolloutResponseFunction · 0.85

Tested by

no test coverage detected