diff options
author | Sefa Eyeoglu <contact@scrumplex.net> | 2022-10-15 13:18:35 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-15 13:18:35 +0200 |
commit | 924c1634d35e4e10222d12cb69ec11dd8b8af8ac (patch) | |
tree | 113e32f8a930790c00514994e3bc46c0e2814a80 /launcher/ui/pages/modplatform/flame | |
parent | 19ee736e1d117a5da5f06740ee502d741fe01aa4 (diff) | |
parent | b2a5d8daf4e006e11c9bc67b10a88f9f5f51ba54 (diff) | |
download | PrismLauncher-924c1634d35e4e10222d12cb69ec11dd8b8af8ac.tar.gz PrismLauncher-924c1634d35e4e10222d12cb69ec11dd8b8af8ac.tar.bz2 PrismLauncher-924c1634d35e4e10222d12cb69ec11dd8b8af8ac.zip |
Merge pull request #1194 from flowln/fix_opted_out_on_any_filter
Diffstat (limited to 'launcher/ui/pages/modplatform/flame')
-rw-r--r-- | launcher/ui/pages/modplatform/flame/FlameModPage.cpp | 5 | ||||
-rw-r--r-- | launcher/ui/pages/modplatform/flame/FlameModPage.h | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/launcher/ui/pages/modplatform/flame/FlameModPage.cpp b/launcher/ui/pages/modplatform/flame/FlameModPage.cpp index 772fd2e0..54a7be04 100644 --- a/launcher/ui/pages/modplatform/flame/FlameModPage.cpp +++ b/launcher/ui/pages/modplatform/flame/FlameModPage.cpp @@ -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... diff --git a/launcher/ui/pages/modplatform/flame/FlameModPage.h b/launcher/ui/pages/modplatform/flame/FlameModPage.h index 2cd484cb..50dedd6f 100644 --- a/launcher/ui/pages/modplatform/flame/FlameModPage.h +++ b/launcher/ui/pages/modplatform/flame/FlameModPage.h @@ -61,6 +61,7 @@ class FlameModPage : public ModPage { inline auto metaEntryBase() const -> QString override { return "FlameMods"; }; auto validateVersion(ModPlatform::IndexedVersion& ver, QString mineVer, ModAPI::ModLoaderTypes loaders = ModAPI::Unspecified) const -> bool override; + bool optedOut(ModPlatform::IndexedVersion& ver) const override; auto shouldDisplay() const -> bool override; }; |