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

Method removeItem

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

Source from the content-addressed store, hash-verified

162}
163
164void ExternalResourcesPage::removeItem()
165{
166 if (!m_controlsEnabled)
167 return;
168
169 auto selection = m_filterModel->mapSelectionToSource(ui->treeView->selectionModel()->selection());
170 m_model->deleteResources(selection.indexes());
171}
172
173void ExternalResourcesPage::enableItem()
174{

Callers

nothing calls this directly

Calls 1

deleteResourcesMethod · 0.80

Tested by

no test coverage detected