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

Method updateButtons

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

Source from the content-addressed store, hash-verified

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

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