MCPcopy Create free account
hub / github.com/MultiMC/Launcher / setModStatus

Method setModStatus

launcher/minecraft/mod/ModFolderModel.cpp:306–323  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

304}
305
306bool ModFolderModel::setModStatus(const QModelIndexList& indexes, ModStatusAction enable)
307{
308 if(interaction_disabled) {
309 return false;
310 }
311
312 if(indexes.isEmpty())
313 return true;
314
315 for (auto index: indexes)
316 {
317 if(index.column() != 0) {
318 continue;
319 }
320 setModStatus(index.row(), enable);
321 }
322 return true;
323}
324
325bool ModFolderModel::deleteMods(const QModelIndexList& indexes)
326{

Callers 3

modItemActivatedMethod · 0.80

Calls 8

QModelIndexClass · 0.85
isEmptyMethod · 0.80
enabledMethod · 0.80
mmc_idMethod · 0.80
sizeMethod · 0.45
enableMethod · 0.45
containsMethod · 0.45
removeMethod · 0.45

Tested by

no test coverage detected