Improve UI

Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
Trial97
2024-03-20 00:15:02 +02:00
parent ef4e5eb3cf
commit 09c2c6793b
18 changed files with 295 additions and 296 deletions

View File

@ -258,14 +258,9 @@ VersionFilePtr OneSixVersionFormat::versionFileFromJson(const QJsonDocument& doc
}
if (root.contains("runtimes")) {
auto runtimes = requireObject(root, "runtimes");
out->runtimes = {};
for (auto key : runtimes.keys()) {
QList<Java::MetadataPtr> list;
for (auto runtime : ensureArray(runtimes, key)) {
list.append(Java::parseJavaMeta(ensureObject(runtime)));
}
out->runtimes[key] = list;
for (auto runtime : ensureArray(root, "runtimes")) {
out->runtimes.append(Java::parseJavaMeta(ensureObject(runtime)));
}
}