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

@ -265,7 +265,9 @@ void ModPage::updateModVersions(int prev_count)
break;
}
}
if(valid || m_filter->versions.size() == 0)
// Only add the version if it's valid or using the 'Any' filter, but never if the version is opted out
if ((valid || m_filter->versions.empty()) && !optedOut(version))
ui->versionSelectionBox->addItem(version.version, QVariant(i));
}
if (ui->versionSelectionBox->count() == 0 && prev_count != 0) {