mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-06-29 09:59:59 +03:00
Made tar.gz parser
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
parent
ab7fc2e46c
commit
1a6dfd04d6
15 changed files with 381 additions and 6 deletions
|
|
@ -78,6 +78,13 @@ QVariant VersionList::data(const QModelIndex& index, int role) const
|
|||
return false; // do not recommend any version
|
||||
case JavaNameRole:
|
||||
return version->name();
|
||||
case JavaMajorRole: {
|
||||
auto major = version->version.toString();
|
||||
if (major.startsWith("java")) {
|
||||
major = "Java " + major.mid(4);
|
||||
}
|
||||
return major;
|
||||
}
|
||||
case TypeRole:
|
||||
return version->packageType;
|
||||
case Meta::VersionList::TimeRole:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue