mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-24 22:14:36 +02:00
Merge pull request #1864 from IvanSavenko/launcher_layout_fix
Launcher layout fix
This commit is contained in:
commit
6061ee391d
@ -335,6 +335,7 @@ void FirstLaunchView::modPresetUpdate()
|
||||
bool translationExists = !findTranslationModName().isEmpty();
|
||||
|
||||
ui->labelPresetLanguage->setVisible(translationExists);
|
||||
ui->labelPresetLanguageDescr->setVisible(translationExists);
|
||||
ui->checkBoxPresetLanguage->setVisible(translationExists);
|
||||
|
||||
ui->checkBoxPresetLanguage->setEnabled(checkCanInstallTranslation());
|
||||
|
@ -372,7 +372,7 @@ void CSettingsView::loadTranslation()
|
||||
ui->labelTranslationStatus->setVisible(showTranslation);
|
||||
ui->pushButtonTranslation->setVisible(showTranslation);
|
||||
|
||||
if (!translationExists)
|
||||
if (!translationExists || !translationNeeded)
|
||||
return;
|
||||
|
||||
bool translationAvailable = mainWindow->getModView()->isModAvailable(modName);
|
||||
|
Loading…
Reference in New Issue
Block a user