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

Method isModSelected

launcher/ui/dialogs/ModDownloadDialog.cpp:156–162  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

154}
155
156bool ModDownloadDialog::isModSelected(QString name, QString filename) const
157{
158 // FIXME: Is there a way to check for versions without checking the filename
159 // as a heuristic, other than adding such info to ModDownloadTask itself?
160 auto iter = modTask.find(name);
161 return iter != modTask.end() && (iter.value()->getFilename() == filename);
162}
163
164bool ModDownloadDialog::isModSelected(QString name) const
165{

Callers 3

dataMethod · 0.80
onModSelectedMethod · 0.80
updateSelectionButtonMethod · 0.80

Calls 3

endMethod · 0.80
getFilenameMethod · 0.80
findMethod · 0.45

Tested by

no test coverage detected