mirror of
https://github.com/UltimMC/Launcher.git
synced 2025-12-14 12:37:23 +00:00
GH-952 flesh out {version,custom}.json upgrade step
This commit is contained in:
@@ -274,7 +274,17 @@ QVariant MinecraftProfile::data(const QModelIndex &index, int role) const
|
||||
case 0:
|
||||
return VersionPatches.at(row)->getPatchName();
|
||||
case 1:
|
||||
return VersionPatches.at(row)->getPatchVersion();
|
||||
{
|
||||
auto patch = VersionPatches.at(row);
|
||||
if(patch->isCustom())
|
||||
{
|
||||
return QString("%1 (Custom)").arg(patch->getPatchVersion());
|
||||
}
|
||||
else
|
||||
{
|
||||
return patch->getPatchVersion();
|
||||
}
|
||||
}
|
||||
default:
|
||||
return QVariant();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user