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

Method getTasks

launcher/ui/dialogs/ResourceDownloadDialog.cpp:253–261  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

251}
252
253const QList<ResourceDownloadDialog::DownloadTaskPtr> ResourceDownloadDialog::getTasks()
254{
255 QList<DownloadTaskPtr> selected;
256 for (auto page : m_container->getPages()) {
257 auto res = static_cast<ResourcePage*>(page);
258 selected.append(res->selectedPacks());
259 }
260 return selected;
261}
262
263void ResourceDownloadDialog::selectedPageChanged(BasePage* previous, BasePage* selected)
264{

Callers

nothing calls this directly

Calls 3

appendMethod · 0.80
getPagesMethod · 0.45
selectedPacksMethod · 0.45

Tested by

no test coverage detected