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

Method exec

launcher/ui/widgets/ProgressWidget.cpp:42–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40 }
41}
42bool ProgressWidget::exec(std::shared_ptr<Task> task)
43{
44 QEventLoop loop;
45 connect(task.get(), &Task::finished, &loop, &QEventLoop::quit);
46 start(task);
47 if (task->isRunning())
48 {
49 loop.exec();
50 }
51 return task->wasSuccessful();
52}
53
54void ProgressWidget::handleTaskFinish()
55{

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
updateAvailableMethod · 0.45
updateNotAvailableMethod · 0.45
notificationsChangedMethod · 0.45

Calls 3

getMethod · 0.45
isRunningMethod · 0.45
wasSuccessfulMethod · 0.45

Tested by

no test coverage detected