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

Method setButtonStatus

launcher/ui/dialogs/ResourceDownloadDialog.cpp:232–240  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

230}
231
232void ResourceDownloadDialog::setButtonStatus()
233{
234 auto selected = false;
235 for (auto page : m_container->getPages()) {
236 auto res = static_cast<ResourcePage*>(page);
237 selected = selected || res->hasSelectedPacks();
238 }
239 m_buttons.button(QDialogButtonBox::Ok)->setEnabled(selected);
240}
241
242const QList<ResourceDownloadDialog::DownloadTaskPtr> ResourceDownloadDialog::getTasks()
243{

Callers

nothing calls this directly

Calls 3

hasSelectedPacksMethod · 0.80
setEnabledMethod · 0.80
getPagesMethod · 0.45

Tested by

no test coverage detected