mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-07-03 20:06:58 +03:00
Remove version patch reordering. Remove the main class display from onesix edit mods.
This commit is contained in:
parent
47bc7e5ee3
commit
ffff2cd324
5 changed files with 45 additions and 144 deletions
|
|
@ -56,7 +56,7 @@ bool VersionFinal::canRemove(const int index) const
|
|||
{
|
||||
if (index < versionFiles.size())
|
||||
{
|
||||
return versionFiles.at(index).id != "org.multimc.version.json";
|
||||
return versionFiles.at(index)->fileId != "org.multimc.version.json";
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
|
@ -67,14 +67,14 @@ QString VersionFinal::versionFileId(const int index) const
|
|||
{
|
||||
return QString();
|
||||
}
|
||||
return versionFiles.at(index).id;
|
||||
return versionFiles.at(index)->fileId;
|
||||
}
|
||||
|
||||
bool VersionFinal::remove(const int index)
|
||||
{
|
||||
if (canRemove(index))
|
||||
{
|
||||
return QFile::remove(versionFiles.at(index).filename);
|
||||
return QFile::remove(versionFiles.at(index)->filename);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
|
@ -135,9 +135,9 @@ QVariant VersionFinal::data(const QModelIndex &index, int role) const
|
|||
switch (column)
|
||||
{
|
||||
case 0:
|
||||
return versionFiles.at(row).name;
|
||||
return versionFiles.at(row)->name;
|
||||
case 1:
|
||||
return versionFiles.at(row).version;
|
||||
return versionFiles.at(row)->version;
|
||||
default:
|
||||
return QVariant();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue