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

Method itemActivated

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

Source from the content-addressed store, hash-verified

86}
87
88void ExternalResourcesPage::itemActivated(const QModelIndex&)
89{
90 if (!m_controlsEnabled)
91 return;
92
93 auto selection = m_filterModel->mapSelectionToSource(ui->treeView->selectionModel()->selection());
94 m_model->setResourceEnabled(selection.indexes(), EnableAction::TOGGLE);
95}
96
97void ExternalResourcesPage::filterTextChanged(const QString& newContents)
98{

Callers

nothing calls this directly

Calls 1

setResourceEnabledMethod · 0.80

Tested by

no test coverage detected