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.
This commit is contained in:
Jamie Mansfield
2021-10-16 23:31:27 +01:00
parent 6cc7788b4a
commit 175132539b
6 changed files with 39 additions and 51 deletions

View File

@ -63,7 +63,12 @@ bool FtbPage::shouldDisplay() const
void FtbPage::openedImpl()
{
triggerSearch();
if(!initialised)
{
listModel->request();
initialised = true;
}
suggestCurrent();
}
@ -96,7 +101,7 @@ void FtbPage::suggestCurrent()
void FtbPage::triggerSearch()
{
listModel->searchWithTerm(ui->searchEdit->text());
filterModel->setSearchTerm(ui->searchEdit->text());
}
void FtbPage::onSortingSelectionChanged(QString data)