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

Method executeTask

launcher/launch/steps/Update.cpp:19–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17#include <launch/LaunchTask.h>
18
19void Update::executeTask()
20{
21 if(m_aborted)
22 {
23 emitFailed(tr("Task aborted."));
24 return;
25 }
26 m_updateTask.reset(m_parent->instance()->createUpdateTask(m_mode));
27 if(m_updateTask)
28 {
29 connect(m_updateTask.get(), SIGNAL(finished()), this, SLOT(updateFinished()));
30 connect(m_updateTask.get(), &Task::progress, this, &Task::setProgress);
31 connect(m_updateTask.get(), &Task::status, this, &Task::setStatus);
32 emit progressReportingRequest();
33 return;
34 }
35 emitSucceeded();
36}
37
38void Update::proceed()
39{

Callers

nothing calls this directly

Calls 4

resetMethod · 0.45
createUpdateTaskMethod · 0.45
instanceMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected