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

Method deleteMetadata

launcher/minecraft/mod/ResourceFolderModel.cpp:248–262  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

246}
247
248void ResourceFolderModel::deleteMetadata(const QModelIndexList& indexes)
249{
250 if (indexes.isEmpty())
251 return;
252
253 for (auto i : indexes) {
254 if (i.column() != 0)
255 continue;
256
257 auto& resource = m_resources.at(i.row());
258 resource->destroyMetadata(indexDir());
259 }
260
261 update();
262}
263
264bool ResourceFolderModel::setResourceEnabled(const QModelIndexList& indexes, EnableAction action)
265{

Callers 5

deleteModMetadataMethod · 0.80

Calls 4

updateFunction · 0.85
destroyMetadataMethod · 0.80
isEmptyMethod · 0.45
atMethod · 0.45

Tested by

no test coverage detected