feat: Splash screen delay opt for colorlcd, startup sound disable opt (#3451)
* Enable startup splash screen duration for color LCD radios. Add option to disable startup sound. Add Companion support for changes. * Add translation string for Hebrew language file. * Fix rebase. * chore: Add T20 * Update translations. * Update translations. * Update translations. * Update translations. * Right justify radio setup controls. * Use longer translations for all radios. * Enable splash screen timeout for NV14/EL18. * Suspend watchdog timer to prevent EM if long splash display time selected. * Simplify SPLASH_TIMEOUT code. * Use WDG_RESET instead of watchdogSuspend. --------- Co-authored-by: Phil Mitchell <phil.a.mitchell@gmail.com> Co-authored-by: Peter Feerick <peter.feerick@gmail.com>
This commit is contained in:
co-authored by
Phil Mitchell
Peter Feerick
parent
ca025e849f
commit
9e7a331fa6
@@ -251,12 +251,9 @@ ui(new Ui::GeneralSetup)
|
||||
|
||||
ui->rssiPowerOffWarnChkB->setChecked(!generalSettings.disableRssiPoweroffAlarm); // Default is zero=checked
|
||||
|
||||
ui->splashScreenDuration->setCurrentIndex(3-generalSettings.splashMode);
|
||||
if (IS_FAMILY_HORUS_OR_T16(firmware->getBoard())) {
|
||||
ui->splashScreenDuration->hide();
|
||||
ui->splashScreenLabel->hide();
|
||||
}
|
||||
else {
|
||||
ui->splashScreenDuration->setCurrentIndex(3-generalSettings.splashMode);
|
||||
ui->splashScreenDuration->setItemText(0, QCoreApplication::translate("GeneralSetup", "1s", nullptr));
|
||||
}
|
||||
|
||||
if (!firmware->getCapability(PwrButtonPress)) {
|
||||
@@ -477,6 +474,8 @@ void GeneralSetupPanel::setValues()
|
||||
|
||||
ui->registrationId->setText(generalSettings.registrationId);
|
||||
|
||||
ui->startSoundCB->setChecked(!generalSettings.dontPlayHello);
|
||||
|
||||
if (Boards::getCapability(firmware->getBoard(), Board::HasColorLcd)) {
|
||||
ui->modelQuickSelect_CB->setChecked(generalSettings.modelQuickSelect);
|
||||
} else {
|
||||
@@ -804,3 +803,9 @@ void GeneralSetupPanel::on_modelQuickSelect_CB_stateChanged(int)
|
||||
generalSettings.modelQuickSelect = ui->modelQuickSelect_CB->isChecked();
|
||||
emit modified();
|
||||
}
|
||||
|
||||
void GeneralSetupPanel::on_startSoundCB_stateChanged(int)
|
||||
{
|
||||
generalSettings.dontPlayHello = !ui->startSoundCB->isChecked();
|
||||
emit modified();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user