MCPcopy Create free account
hub / github.com/PolyMC/PolyMC / enableItem

Method enableItem

launcher/ui/pages/instance/ExternalResourcesPage.cpp:173–180  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

171}
172
173void ExternalResourcesPage::enableItem()
174{
175 if (!m_controlsEnabled)
176 return;
177
178 auto selection = m_filterModel->mapSelectionToSource(ui->treeView->selectionModel()->selection());
179 m_model->setResourceEnabled(selection.indexes(), EnableAction::ENABLE);
180}
181
182void ExternalResourcesPage::disableItem()
183{

Callers

nothing calls this directly

Calls 1

setResourceEnabledMethod · 0.80

Tested by

no test coverage detected