fix: don't include opted out versions with the 'Any' filter on the MD

Signed-off-by: flow <flowlnlnln@gmail.com>
This commit is contained in:
flow
2022-10-12 10:26:14 -03:00
parent 19ee736e1d
commit b2a5d8daf4
4 changed files with 10 additions and 1 deletions

View File

@ -67,6 +67,11 @@ auto FlameModPage::validateVersion(ModPlatform::IndexedVersion& ver, QString min
return ver.mcVersion.contains(mineVer) && !ver.downloadUrl.isEmpty();
}
bool FlameModPage::optedOut(ModPlatform::IndexedVersion& ver) const
{
return ver.downloadUrl.isEmpty();
}
// I don't know why, but doing this on the parent class makes it so that
// other mod providers start loading before being selected, at least with
// my Qt, so we need to implement this in every derived class...