Fixed curseforge version filter

Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
Trial97 2023-12-13 17:48:11 +02:00
parent 763eab6b96
commit 6a61900328
No known key found for this signature in database
GPG Key ID: 55EF5DA53DB36318

View File

@ -177,6 +177,7 @@ void ModFilterWidget::prepareBasicFilter()
auto def = m_instance->getPackProfile()->getComponentVersion("net.minecraft"); auto def = m_instance->getPackProfile()->getComponentVersion("net.minecraft");
m_filter->versions.push_front(Version{ def }); m_filter->versions.push_front(Version{ def });
ui->versionsCb->setCheckedItems({ def }); ui->versionsCb->setCheckedItems({ def });
ui->versionsSimpleCb->setCurrentIndex(ui->versionsSimpleCb->findText(def));
} }
void ModFilterWidget::onIncludeSnapshotsChanged() void ModFilterWidget::onIncludeSnapshotsChanged()