Hide Show Splash Screen on Startup option in general settings [Horus]

This commit is contained in:
Damjan Adamic
2017-01-27 09:21:24 +01:00
parent 0f90ff0b65
commit 7d849e1c4c
2 changed files with 6 additions and 1 deletions
@@ -213,6 +213,11 @@ ui(new Ui::GeneralSetup)
ui->memwarnChkB->setChecked(!generalSettings.disableMemoryWarning); //Default is zero=checked
ui->alarmwarnChkB->setChecked(!generalSettings.disableAlarmWarning);//Default is zero=checked
if (IS_HORUS(firmware->getBoard())) {
ui->splashScreenChkB->hide();
ui->splashScreenDuration->hide();
ui->splashScreenLabel->hide();
}
if (IS_TARANIS(firmware->getBoard())) {
ui->splashScreenChkB->hide();
ui->splashScreenDuration->setCurrentIndex(3-generalSettings.splashDuration);