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

Method disableItem

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

Source from the content-addressed store, hash-verified

180}
181
182void ExternalResourcesPage::disableItem()
183{
184 if (!m_controlsEnabled)
185 return;
186
187 auto selection = m_filterModel->mapSelectionToSource(ui->treeView->selectionModel()->selection());
188 m_model->setResourceEnabled(selection.indexes(), EnableAction::DISABLE);
189}
190
191void ExternalResourcesPage::viewConfigs()
192{

Callers

nothing calls this directly

Calls 1

setResourceEnabledMethod · 0.80

Tested by

no test coverage detected