1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-22 22:13:35 +02:00

Fix translation buttons

This commit is contained in:
Ivan Savenko 2024-12-06 14:18:39 +00:00
parent 0bce49d618
commit 28724c3f1b

View File

@ -186,20 +186,17 @@ void StartGameTab::on_buttonInstallTranslation_clicked()
{
if (getMainWindow()->getTranslationStatus() == ETranslationStatus::NOT_INSTALLLED)
{
getMainWindow()->getModView()->getTranslationModName();
mainWindow->getModView()->doInstallMod(modName);
QString preferredlanguage = QString::fromStdString(settings["general"]["language"].String());
QString modName = getMainWindow()->getModView()->getTranslationModName(preferredlanguage);
getMainWindow()->getModView()->doInstallMod(modName);
}
}
else
{
mainWindow->getModView()->enableModByName(modName);
}
}
}
void StartGameTab::on_buttonActivateTranslation_clicked()
{
// TODO
QString preferredlanguage = QString::fromStdString(settings["general"]["language"].String());
QString modName = getMainWindow()->getModView()->getTranslationModName(preferredlanguage);
getMainWindow()->getModView()->enableModByName(modName);
}
void StartGameTab::on_buttonUpdateMods_clicked()