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

Method exec

launcher/ui/widgets/ProgressWidget.cpp:67–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65}
66
67bool ProgressWidget::exec(std::shared_ptr<Task> task)
68{
69 QEventLoop loop;
70
71 connect(task.get(), &Task::finished, &loop, &QEventLoop::quit);
72
73 start(task.get());
74
75 if (task->isRunning())
76 loop.exec();
77
78 return task->wasSuccessful();
79}
80
81void ProgressWidget::show()
82{

Callers 15

showFatalErrorMessageMethod · 0.45
ShowGlobalSettingsMethod · 0.45
checkJVMArgsMethod · 0.45
decideAccountMethod · 0.45
loginMethod · 0.45
readyForLaunchMethod · 0.45
abortMethod · 0.45
mainFunction · 0.45
modrinthCallbackMethod · 0.45
flameCallbackMethod · 0.45
getModFileChangelogMethod · 0.45

Calls 3

wasSuccessfulMethod · 0.80
getMethod · 0.45
isRunningMethod · 0.45

Tested by

no test coverage detected