aboutsummaryrefslogtreecommitdiff
path: root/launcher/minecraft/mod/tasks
diff options
context:
space:
mode:
authorRachel Powers <508861+Ryex@users.noreply.github.com>2023-05-05 13:46:38 -0700
committerRachel Powers <508861+Ryex@users.noreply.github.com>2023-05-05 13:46:38 -0700
commit74e7c13a177afdb503a642cb9c97d71e72249291 (patch)
tree46ce82581e2426a0a7794edf2566513eee2162b6 /launcher/minecraft/mod/tasks
parent3cfcc83ea99e8f42dba8848b5ef885c296b4566a (diff)
downloadPrismLauncher-74e7c13a177afdb503a642cb9c97d71e72249291.tar.gz
PrismLauncher-74e7c13a177afdb503a642cb9c97d71e72249291.tar.bz2
PrismLauncher-74e7c13a177afdb503a642cb9c97d71e72249291.zip
feat: display license and issue tracker
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
Diffstat (limited to 'launcher/minecraft/mod/tasks')
-rw-r--r--launcher/minecraft/mod/tasks/LocalModParseTask.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/launcher/minecraft/mod/tasks/LocalModParseTask.cpp b/launcher/minecraft/mod/tasks/LocalModParseTask.cpp
index f045bde3..264019f8 100644
--- a/launcher/minecraft/mod/tasks/LocalModParseTask.cpp
+++ b/launcher/minecraft/mod/tasks/LocalModParseTask.cpp
@@ -184,7 +184,8 @@ ModDetails ReadMCModTOML(QByteArray contents)
} else if (auto licenseDatum =(*modsTable)["license"].as_string()) {
license = QString::fromStdString(licenseDatum->get());
}
- details.licenses.push_back(ModLicense(license));
+ if (!license.isEmpty())
+ details.licenses.append(ModLicense(license));
QString logoFile = "";
if (auto logoFileDatum = tomlData["logoFile"].as_string()) {