MCPcopy Create free account
hub / github.com/ElyPrismLauncher/Launcher / done

Method done

launcher/ui/dialogs/InstallLoaderDialog.cpp:160–171  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

158}
159
160void InstallLoaderDialog::done(int result)
161{
162 if (result == Accepted) {
163 auto* page = pageCast(container->selectedPage());
164 if (page->selectedVersion()) {
165 profile->setComponentVersion(page->id(), page->selectedVersion()->descriptor());
166 profile->resolve(Net::Mode::Online);
167 }
168 }
169
170 QDialog::done(result);
171}
172#include "InstallLoaderDialog.moc"

Callers

nothing calls this directly

Calls 7

setComponentVersionMethod · 0.80
pageCastFunction · 0.70
selectedPageMethod · 0.45
selectedVersionMethod · 0.45
idMethod · 0.45
descriptorMethod · 0.45
resolveMethod · 0.45

Tested by

no test coverage detected