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

Merge pull request #1864 from IvanSavenko/launcher_layout_fix

Launcher layout fix
This commit is contained in:
Ivan Savenko 2023-04-04 11:22:16 +03:00 committed by GitHub
commit 6061ee391d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -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());

View File

@ -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);