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

Method handleImmediateResult

launcher/ui/dialogs/ProgressDialog.cpp:115–126  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

113}
114
115bool ProgressDialog::handleImmediateResult(QDialog::DialogCode& result)
116{
117 if (task->isFinished()) {
118 if (task->wasSuccessful()) {
119 result = QDialog::Accepted;
120 } else {
121 result = QDialog::Rejected;
122 }
123 return true;
124 }
125 return false;
126}
127
128Task* ProgressDialog::getTask()
129{

Callers

nothing calls this directly

Calls 2

isFinishedMethod · 0.80
wasSuccessfulMethod · 0.80

Tested by

no test coverage detected