1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-29 23:07:48 +02:00

Fix visibility of translation mods, fix heading for mod version field

This commit is contained in:
Ivan Savenko
2024-11-15 16:43:28 +00:00
parent 1f8dc49669
commit 5ca65f14bd
2 changed files with 7 additions and 2 deletions

View File

@@ -200,7 +200,7 @@ bool ModState::isVisible() const
bool ModState::isHidden() const
{
if (isTranslation() && !isInstalled())
return impl.getBaseLanguage() == CGeneralTextHandler::getPreferredLanguage();
return impl.getBaseLanguage() != CGeneralTextHandler::getPreferredLanguage();
return isCompatibility() || getID() == "vcmi" || getID() == "core";
}