aboutsummaryrefslogtreecommitdiff
path: root/launcher/ui
diff options
context:
space:
mode:
authorflow <thiagodonato300@gmail.com>2022-05-15 07:12:31 -0300
committerflow <thiagodonato300@gmail.com>2022-05-15 07:15:56 -0300
commit4a0e4fdb85ae6782406919c4b4df9554a81356aa (patch)
tree20975676348ea8cfb4397b2de354bf002a96afce /launcher/ui
parenta43f882d482061b86a339c1338e26246f6fc5f70 (diff)
downloadPrismLauncher-4a0e4fdb85ae6782406919c4b4df9554a81356aa.tar.gz
PrismLauncher-4a0e4fdb85ae6782406919c4b4df9554a81356aa.tar.bz2
PrismLauncher-4a0e4fdb85ae6782406919c4b4df9554a81356aa.zip
fix: add author page url
Diffstat (limited to 'launcher/ui')
-rw-r--r--launcher/ui/pages/modplatform/modrinth/ModrinthPage.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/launcher/ui/pages/modplatform/modrinth/ModrinthPage.cpp b/launcher/ui/pages/modplatform/modrinth/ModrinthPage.cpp
index cf519b8c..acfd14b5 100644
--- a/launcher/ui/pages/modplatform/modrinth/ModrinthPage.cpp
+++ b/launcher/ui/pages/modplatform/modrinth/ModrinthPage.cpp
@@ -221,10 +221,8 @@ void ModrinthPage::updateUI()
else
text = "<a href=\"" + current.extra.projectUrl + "\">" + current.name + "</a>";
- if (!current.authors.empty()) {
- // TODO: Implement multiple authors with links
- text += "<br>" + tr(" by ") + current.authors.at(0);
- }
+ // TODO: Implement multiple authors with links
+ text += "<br>" + tr(" by ") + QString("<a href=%1>%2</a>").arg(std::get<1>(current.author).toString(), std::get<0>(current.author));
text += "<br>";
@@ -255,7 +253,7 @@ void ModrinthPage::suggestCurrent()
dialog->setSuggestedPack(current.name, new InstanceImportTask(ver.download_url));
auto iconName = current.iconName;
m_model->getLogo(iconName, current.iconUrl.toString(),
- [this, iconName](QString logo) { dialog->setSuggestedIconFromFile(logo, iconName); });
+ [this, iconName](QString logo) { dialog->setSuggestedIconFromFile(logo, iconName); });
break;
}