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

Method updateButtons

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

Source from the content-addressed store, hash-verified

236}
237
238void VersionPage::updateButtons(int row)
239{
240 if (row == -1)
241 row = currentRow();
242 auto patch = m_profile->getComponent(row);
243 ui->actionRemove->setEnabled(patch && patch->isRemovable());
244 ui->actionMove_down->setEnabled(patch && patch->isMoveable());
245 ui->actionMove_up->setEnabled(patch && patch->isMoveable());
246 ui->actionChange_version->setEnabled(patch && patch->isVersionChangeable(false));
247 ui->actionEdit->setEnabled(patch && patch->isCustom());
248 ui->actionCustomize->setEnabled(patch && patch->isCustomizable());
249 ui->actionRevert->setEnabled(patch && patch->isRevertible());
250}
251
252bool VersionPage::reloadPackProfile()
253{

Callers

nothing calls this directly

Calls 8

getComponentMethod · 0.80
setEnabledMethod · 0.80
isRemovableMethod · 0.80
isMoveableMethod · 0.80
isVersionChangeableMethod · 0.80
isCustomMethod · 0.80
isCustomizableMethod · 0.80
isRevertibleMethod · 0.80

Tested by

no test coverage detected