diff options
author | timoreo <timo.oreo34@gmail.com> | 2022-01-15 10:25:24 +0100 |
---|---|---|
committer | timoreo <timo.oreo34@gmail.com> | 2022-01-15 10:25:24 +0100 |
commit | 621e0ba4a887ab4dfdde6a6bba2e1c7b209fb6bc (patch) | |
tree | 882775969e69683f264cdc071f9b95ee8cad1da8 /launcher/ui | |
parent | f6de472da2f4b27c941517c17fb604b63d8e21d2 (diff) | |
download | PrismLauncher-621e0ba4a887ab4dfdde6a6bba2e1c7b209fb6bc.tar.gz PrismLauncher-621e0ba4a887ab4dfdde6a6bba2e1c7b209fb6bc.tar.bz2 PrismLauncher-621e0ba4a887ab4dfdde6a6bba2e1c7b209fb6bc.zip |
Added smart file selection
This might fail in a few special cases
Diffstat (limited to 'launcher/ui')
-rw-r--r-- | launcher/ui/pages/modplatform/modrinth/ModrinthPage.cpp | 6 |
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(); } |