diff options
author | Jan Dalheimer <jan@dalheimer.de> | 2014-02-17 20:31:50 +0100 |
---|---|---|
committer | Jan Dalheimer <jan@dalheimer.de> | 2014-02-17 20:31:50 +0100 |
commit | 0b56b5efafffca77d6deee966097c55e78fb0aef (patch) | |
tree | ddb7011fde89c587b864a8c1d6d36cdcaef6472b /logic/LegacyInstance.cpp | |
parent | 4e8be668cb9b3c4929748aafb1baf53e6b1c098b (diff) | |
download | MultiMC-0b56b5efafffca77d6deee966097c55e78fb0aef.tar MultiMC-0b56b5efafffca77d6deee966097c55e78fb0aef.tar.gz MultiMC-0b56b5efafffca77d6deee966097c55e78fb0aef.tar.lz MultiMC-0b56b5efafffca77d6deee966097c55e78fb0aef.tar.xz MultiMC-0b56b5efafffca77d6deee966097c55e78fb0aef.zip |
Instance flags. Currently used for marking instances as broken. Can later be used for badges.
Diffstat (limited to 'logic/LegacyInstance.cpp')
-rw-r--r-- | logic/LegacyInstance.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/logic/LegacyInstance.cpp b/logic/LegacyInstance.cpp index a9f0d112..f58f0e76 100644 --- a/logic/LegacyInstance.cpp +++ b/logic/LegacyInstance.cpp @@ -268,13 +268,23 @@ QString LegacyInstance::defaultCustomBaseJar() const bool LegacyInstance::menuActionEnabled(QString action_name) const { + 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 |