aboutsummaryrefslogtreecommitdiff
path: root/launcher/ui/pages
diff options
context:
space:
mode:
Diffstat (limited to 'launcher/ui/pages')
-rw-r--r--launcher/ui/pages/modplatform/modrinth/ModrinthPage.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/launcher/ui/pages/modplatform/modrinth/ModrinthPage.cpp b/launcher/ui/pages/modplatform/modrinth/ModrinthPage.cpp
index f58a884c..fe5766dc 100644
--- a/launcher/ui/pages/modplatform/modrinth/ModrinthPage.cpp
+++ b/launcher/ui/pages/modplatform/modrinth/ModrinthPage.cpp
@@ -128,7 +128,7 @@ void ModrinthPage::onSelectionChanged(QModelIndex first, QModelIndex second)
QJsonArray arr = doc.array();
try
{
- Modrinth::loadIndexedPackVersions(current, arr, APPLICATION->network());
+ Modrinth::loadIndexedPackVersions(current, arr, APPLICATION->network(), m_instance);
}
catch(const JSONValidationError &e)
{
@@ -145,7 +145,7 @@ void ModrinthPage::onSelectionChanged(QModelIndex first, QModelIndex second)
ui->versionSelectionBox->addItem(version.version, QVariant(version.downloadUrl));
}
if(ui->versionSelectionBox->count() == 0){
- ui->versionSelectionBox->addItem("No Valid Version found !", QVariant(""));
+ ui->versionSelectionBox->addItem(tr("No Valid Version found !"), QVariant(""));
}
suggestCurrent();
@@ -158,7 +158,7 @@ void ModrinthPage::onSelectionChanged(QModelIndex first, QModelIndex second)
ui->versionSelectionBox->addItem(version.version, QVariant(version.downloadUrl));
}
if(ui->versionSelectionBox->count() == 0){
- ui->versionSelectionBox->addItem("No Valid Version found !", QVariant(""));
+ ui->versionSelectionBox->addItem(tr("No Valid Version found !"), QVariant(""));
}
suggestCurrent();
}