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

Method getStateMessage

launcher/minecraft/auth/flows/AuthFlow.cpp:50–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48
49
50QString AuthFlow::getStateMessage() const {
51 switch (m_taskState)
52 {
53 case AccountTaskState::STATE_WORKING: {
54 if(m_currentStep) {
55 return m_currentStep->describe();
56 }
57 else {
58 return tr("Working...");
59 }
60 }
61 default: {
62 return AccountTask::getStateMessage();
63 }
64 }
65}
66
67void AuthFlow::stepFinished(AccountTaskState resultingState, QString message) {
68 if(changeState(resultingState, message)) {

Callers

nothing calls this directly

Calls 1

describeMethod · 0.45

Tested by

no test coverage detected