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

Method updateFinished

launcher/launch/steps/Update.cpp:43–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41}
42
43void Update::updateFinished()
44{
45 if(m_updateTask->wasSuccessful())
46 {
47 m_updateTask.reset();
48 emitSucceeded();
49 }
50 else
51 {
52 QString reason = tr("Instance update failed because: %1\n\n").arg(m_updateTask->failReason());
53 m_updateTask.reset();
54 emit logLine(reason, MessageLevel::Fatal);
55 emitFailed(reason);
56 }
57}
58
59bool Update::canAbort() const
60{

Callers

nothing calls this directly

Calls 3

wasSuccessfulMethod · 0.80
failReasonMethod · 0.80
resetMethod · 0.45

Tested by

no test coverage detected