MCPcopy Create free account
hub / github.com/FreesmTeam/FreesmLauncher / reloadPackProfile

Method reloadPackProfile

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

Source from the content-addressed store, hash-verified

250}
251
252bool VersionPage::reloadPackProfile()
253{
254 try {
255 auto result = m_profile->reload(Net::Mode::Online);
256 if (!result) {
257 QMessageBox::critical(this, tr("Error"), result.error);
258 }
259 return result;
260 } catch (const Exception& e) {
261 QMessageBox::critical(this, tr("Error"), e.cause());
262 return false;
263 } catch (...) {
264 QMessageBox::critical(this, tr("Error"), tr("Couldn't load the instance profile."));
265 return false;
266 }
267}
268
269void VersionPage::on_actionReload_triggered()
270{

Callers

nothing calls this directly

Calls 2

causeMethod · 0.80
reloadMethod · 0.45

Tested by

no test coverage detected