diff options
author | timoreo <timo.oreo34@gmail.com> | 2022-01-24 07:23:01 +0100 |
---|---|---|
committer | timoreo <timo.oreo34@gmail.com> | 2022-01-24 07:23:01 +0100 |
commit | 1d0e6bf453bfee0d9201fabf1e979ab0aca90418 (patch) | |
tree | 7e57b8b4d9bf0baacfb91c70d34966edd8cc9733 /launcher/ui/pages/modplatform/modrinth | |
parent | a2d88f6df47c49d29444e8faba6a6e648cbe3a11 (diff) | |
download | PrismLauncher-1d0e6bf453bfee0d9201fabf1e979ab0aca90418.tar.gz PrismLauncher-1d0e6bf453bfee0d9201fabf1e979ab0aca90418.tar.bz2 PrismLauncher-1d0e6bf453bfee0d9201fabf1e979ab0aca90418.zip |
Changed modrinth author data to not be a list
Diffstat (limited to 'launcher/ui/pages/modplatform/modrinth')
-rw-r--r-- | launcher/ui/pages/modplatform/modrinth/ModrinthPage.cpp | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/launcher/ui/pages/modplatform/modrinth/ModrinthPage.cpp b/launcher/ui/pages/modplatform/modrinth/ModrinthPage.cpp index d0319984..61912cd7 100644 --- a/launcher/ui/pages/modplatform/modrinth/ModrinthPage.cpp +++ b/launcher/ui/pages/modplatform/modrinth/ModrinthPage.cpp @@ -90,21 +90,7 @@ void ModrinthPage::onSelectionChanged(QModelIndex first, QModelIndex second) text = name; else text = "<a href=\"" + current.websiteUrl + "\">" + name + "</a>"; - if (!current.authors.empty()) { - auto authorToStr = [](Modrinth::ModpackAuthor & author) { - if(author.url.isEmpty()) { - return author.name; - } - return QString("<a href=\"%1\">%2</a>").arg(author.url, author.name); - }; - QStringList authorStrs; - for(auto & author: current.authors) { - authorStrs.push_back(authorToStr(author)); - } - text += "<br>" + tr(" by ") + authorStrs.join(", "); - } - text += "<br><br>"; - + text += "<br>"+ tr(" by ") + "<a href=\""+current.author.url+"\">"+current.author.name+"</a><br><br>"; ui->packDescription->setHtml(text + current.description); if (!current.versionsLoaded) |