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

Method removeSelectedMod

launcher/ui/dialogs/ModDownloadDialog.cpp:147–154  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

145}
146
147void ModDownloadDialog::removeSelectedMod(QString name)
148{
149 if (modTask.contains(name))
150 delete modTask.find(name).value();
151 modTask.remove(name);
152
153 m_buttons->button(QDialogButtonBox::Ok)->setEnabled(!modTask.isEmpty());
154}
155
156bool ModDownloadDialog::isModSelected(QString name, QString filename) const
157{

Callers 1

onModSelectedMethod · 0.80

Calls 5

setEnabledMethod · 0.80
isEmptyMethod · 0.80
containsMethod · 0.45
findMethod · 0.45
removeMethod · 0.45

Tested by

no test coverage detected