aboutsummaryrefslogtreecommitdiff
path: root/launcher/pages/modplatform/ftb/FtbListModel.h
diff options
context:
space:
mode:
authorJamie Mansfield <jmansfield@cadixdev.org>2021-10-16 23:31:27 +0100
committerJamie Mansfield <jmansfield@cadixdev.org>2021-10-16 23:31:27 +0100
commit175132539b14be2681bfbaf3f380f0a9b8a69a26 (patch)
tree045b2a9bffb7e677566f08275e3aa62c7186f9f4 /launcher/pages/modplatform/ftb/FtbListModel.h
parent6cc7788b4a9ac8caae581c8f81aec085820f3a4f (diff)
downloadPrismLauncher-175132539b14be2681bfbaf3f380f0a9b8a69a26.tar.gz
PrismLauncher-175132539b14be2681bfbaf3f380f0a9b8a69a26.tar.bz2
PrismLauncher-175132539b14be2681bfbaf3f380f0a9b8a69a26.zip
NOISSUE Filter all pack's by name to search for modpacks.ch
modpacks.ch searching has changed, and while likely a bug - we may as well make this change while we fetch all packs anyway. This makes MMC more reactive for searchs for the platform. This should be reverted if/when the modpacks.ch hits a size where we need to restrict how many packs are fetched.
Diffstat (limited to 'launcher/pages/modplatform/ftb/FtbListModel.h')
-rw-r--r--launcher/pages/modplatform/ftb/FtbListModel.h16
1 files changed, 4 insertions, 12 deletions
diff --git a/launcher/pages/modplatform/ftb/FtbListModel.h b/launcher/pages/modplatform/ftb/FtbListModel.h
index de94e6ba..2d6e91da 100644
--- a/launcher/pages/modplatform/ftb/FtbListModel.h
+++ b/launcher/pages/modplatform/ftb/FtbListModel.h
@@ -30,13 +30,13 @@ public:
int columnCount(const QModelIndex &parent) const override;
QVariant data(const QModelIndex &index, int role) const override;
+ void request();
+
void getLogo(const QString &logo, const QString &logoUrl, LogoCallback callback);
- void searchWithTerm(const QString & term);
private slots:
- void performSearch();
- void searchRequestFinished();
- void searchRequestFailed(QString reason);
+ void requestFinished();
+ void requestFailed(QString reason);
void requestPack();
void packRequestFinished();
@@ -52,14 +52,6 @@ private:
QList<ModpacksCH::Modpack> modpacks;
LogoMap m_logoMap;
- QString currentSearchTerm;
- enum SearchState {
- None,
- CanPossiblyFetchMore,
- ResetRequested,
- Finished,
- Failed,
- } searchState = None;
NetJobPtr jobPtr;
int currentPack;
QList<int> remainingPacks;