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:
parent
0bce49d618
commit
28724c3f1b
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user