feat: cache mod versions
Signed-off-by: flow <flowlnlnln@gmail.com>
This commit is contained in:
parent
6f052baa94
commit
0808a10b7b
3 changed files with 14 additions and 6 deletions
|
@ -183,7 +183,7 @@ void ModPage::onSelectionChanged(QModelIndex curr, QModelIndex prev)
|
|||
ui->modSelectionButton->setText(tr("Loading versions..."));
|
||||
ui->modSelectionButton->setEnabled(false);
|
||||
|
||||
listModel->requestModVersions(current);
|
||||
listModel->requestModVersions(current, curr);
|
||||
} else {
|
||||
for (int i = 0; i < current.versions.size(); i++) {
|
||||
ui->versionSelectionBox->addItem(current.versions[i].version, QVariant(i));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue