aboutsummaryrefslogtreecommitdiff
path: root/launcher/ui/pages/modplatform/flame/FlameModPage.cpp
diff options
context:
space:
mode:
authorflow <thiagodonato300@gmail.com>2022-04-14 10:27:03 -0300
committerflow <thiagodonato300@gmail.com>2022-04-15 08:49:43 -0300
commit277de4120052b2630850a18969a56ee92e8c2c63 (patch)
treee494a38325986cf85b1c35722c4a2f495d3f52f0 /launcher/ui/pages/modplatform/flame/FlameModPage.cpp
parent63bce0464895236a043aa8a98e2905ab1bf34cc1 (diff)
downloadPrismLauncher-277de4120052b2630850a18969a56ee92e8c2c63.tar.gz
PrismLauncher-277de4120052b2630850a18969a56ee92e8c2c63.tar.bz2
PrismLauncher-277de4120052b2630850a18969a56ee92e8c2c63.zip
rework: make the filter as a tabbed widget in the dialog itself
Still needs a clear indication that the filter only applies after you click the search button...
Diffstat (limited to 'launcher/ui/pages/modplatform/flame/FlameModPage.cpp')
-rw-r--r--launcher/ui/pages/modplatform/flame/FlameModPage.cpp19
1 files changed, 0 insertions, 19 deletions
diff --git a/launcher/ui/pages/modplatform/flame/FlameModPage.cpp b/launcher/ui/pages/modplatform/flame/FlameModPage.cpp
index 6e666c4c..864ae8e6 100644
--- a/launcher/ui/pages/modplatform/flame/FlameModPage.cpp
+++ b/launcher/ui/pages/modplatform/flame/FlameModPage.cpp
@@ -67,25 +67,6 @@ auto FlameModPage::validateVersion(ModPlatform::IndexedVersion& ver, QString min
return ver.mcVersion.contains(mineVer);
}
-// We override this so that it refreshes correctly, otherwise it would show
-// invalid mods on the mod list, because the API would return mods for the
-// wrong mod loader :(
-void FlameModPage::filterMods()
-{
- auto ret = filter_dialog.execWithInstance(static_cast<MinecraftInstance*>(m_instance));
- m_filter = filter_dialog.getFilter();
-
- if(ret == QDialog::DialogCode::Accepted){
- // CF API can't handle well this
- if(!m_filter->versions.empty())
- listModel->refresh();
-
- int prev_count = ui->versionSelectionBox->count();
- ui->versionSelectionBox->clear();
- updateModVersions(prev_count);
- }
-}
-
// 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...