Instance flags. Currently used for marking instances as broken. Can later be used for badges.
This commit is contained in:
parent
4e8be668cb
commit
0b56b5efaf
10 changed files with 83 additions and 10 deletions
|
@ -268,13 +268,23 @@ QString LegacyInstance::defaultCustomBaseJar() const
|
|||
|
||||
bool LegacyInstance::menuActionEnabled(QString action_name) const
|
||||
{
|
||||
if (action_name == "actionChangeInstMCVersion")
|
||||
if (flags() & VersionBrokenFlag)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
if (action_name == "actionChangeInstMCVersion")
|
||||
{
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
QString LegacyInstance::getStatusbarDescription()
|
||||
{
|
||||
if (flags() & VersionBrokenFlag)
|
||||
{
|
||||
return "Legacy : " + intendedVersionId() + " (broken)";
|
||||
}
|
||||
if (shouldUpdate())
|
||||
return "Legacy : " + currentVersionId() + " -> " + intendedVersionId();
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue