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

Method reloadPackProfile

launcher/ui/pages/instance/VersionPage.cpp:278–297  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

276}
277
278bool VersionPage::reloadPackProfile()
279{
280 try
281 {
282 m_profile->reload(Net::Mode::Online);
283 return true;
284 }
285 catch (const Exception &e)
286 {
287 QMessageBox::critical(this, tr("Error"), e.cause());
288 return false;
289 }
290 catch (...)
291 {
292 QMessageBox::critical(
293 this, tr("Error"),
294 tr("Couldn't load the instance profile."));
295 return false;
296 }
297}
298
299void VersionPage::on_actionReload_triggered()
300{

Callers

nothing calls this directly

Calls 2

causeMethod · 0.80
reloadMethod · 0.45

Tested by

no test coverage detected