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

@ -51,6 +51,7 @@ class ModPage : public QWidget, public BasePage {
auto shouldDisplay() const -> bool override = 0;
virtual auto validateVersion(ModPlatform::IndexedVersion& ver, QString mineVer, ModAPI::ModLoaderTypes loaders = ModAPI::Unspecified) const -> bool = 0;
virtual bool optedOut(ModPlatform::IndexedVersion& ver) const { return false; };
auto apiProvider() -> ModAPI* { return api.get(); };
auto getFilter() const -> const std::shared_ptr<ModFilterWidget::Filter> { return m_filter; }