Improve UI
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
parent
ef4e5eb3cf
commit
09c2c6793b
18 changed files with 295 additions and 296 deletions
|
@ -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)));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue