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

Method downloadSucceeded

launcher/ModDownloadTask.cpp:46–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44}
45
46void ModDownloadTask::downloadSucceeded()
47{
48 m_filesNetJob.reset();
49 auto name = std::get<0>(to_delete);
50 auto filename = std::get<1>(to_delete);
51 if (!name.isEmpty() && filename != m_mod_version.fileName) {
52 mods->uninstallMod(filename, true);
53 }
54}
55
56void ModDownloadTask::downloadFailed(QString reason)
57{

Callers

nothing calls this directly

Calls 3

isEmptyMethod · 0.80
uninstallModMethod · 0.80
resetMethod · 0.45

Tested by

no test coverage detected