feat(radio): allow user to choose only one log file per day (#7163)
Co-authored-by: elecpower <elecpower@users.noreply.github.com>
This commit is contained in:
@@ -473,6 +473,7 @@ void GeneralSetupPanel::setValues()
|
||||
ui->registrationId->setText(generalSettings.registrationId);
|
||||
ui->startSoundCB->setChecked(!generalSettings.dontPlayHello);
|
||||
ui->modelQuickSelect_CB->setChecked(generalSettings.modelQuickSelect);
|
||||
ui->chkOneLogPerDay->setChecked(generalSettings.oneLogPerDay);
|
||||
|
||||
if (Boards::getCapability(board, Board::HasColorLcd)) {
|
||||
ui->modelSelectLayout_CB->setCurrentIndex(generalSettings.modelSelectLayout);
|
||||
@@ -942,3 +943,11 @@ void GeneralSetupPanel::on_startSoundCB_stateChanged(int)
|
||||
emit modified();
|
||||
}
|
||||
}
|
||||
|
||||
void GeneralSetupPanel::on_chkOneLogPerDay_stateChanged(int)
|
||||
{
|
||||
if (!lock) {
|
||||
generalSettings.oneLogPerDay = ui->chkOneLogPerDay->isChecked();
|
||||
emit modified();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user