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);
+1 -1
View File
@@ -1486,7 +1486,7 @@ p, li { white-space: pre-wrap; }
</widget>
</item>
<item row="10" column="0">
<widget class="QLabel" name="label_29">
<widget class="QLabel" name="splashScreenLabel">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Minimum">
<horstretch>0</horstretch>