Disable some items when the language is being changed.

pull/2/head
Simon Quigley 11 months ago
parent d402c2e8d1
commit 9aa9292f16

@ -424,6 +424,9 @@ void InstallerPrompt::onLanguageChanged(int index) {
void InstallerPrompt::onLanguageConfirm() {
ui->changingLanguageLabel->setVisible(true);
ui->changingLanguageLoader->setVisible(true);
ui->languageComboBox->setEnabled(false);
ui->tryLubuntu->setEnabled(false);
ui->installLubuntu->setEnabled(false);
localeName = languageLocaleMap.value(selectedLanguage);
qDebug() << selectedLanguage << localeName;
@ -472,6 +475,9 @@ void InstallerPrompt::languageProcessFinished(int exitCode, QProcess::ExitStatus
qDebug() << "Process finished. Exit code:" << exitCode << "Exit status:" << exitStatus;
ui->changingLanguageLabel->setVisible(false);
ui->changingLanguageLoader->setVisible(false);
ui->languageComboBox->setEnabled(true);
ui->tryLubuntu->setEnabled(true);
ui->installLubuntu->setEnabled(true);
}
void InstallerPrompt::languageProcessError(QProcess::ProcessError error) {

Loading…
Cancel
Save