fix(cpn): profile radio settings management and use (#6654)

This commit is contained in:
Neil Horne
2025-10-18 20:42:44 +10:00
committed by GitHub
parent f4ecf03a9e
commit 2fe2c6cbe8
16 changed files with 186 additions and 405 deletions
+3 -2
View File
@@ -215,7 +215,6 @@ void AppPreferencesDialog::accept()
}
Firmware::setCurrentVariant(newFw);
profile.fwName("");
profile.resetFwVariables();
profile.fwType(newFw->getId());
fwchange = true;
}
@@ -362,7 +361,8 @@ void AppPreferencesDialog::initSettings()
ui->profileNameLE->setText(profile.name());
QString hwSettings;
if (profile.stickPotCalib() == "" ) {
if (profile.generalSettings().isEmpty()) {
hwSettings = tr("EMPTY: No radio settings stored in profile");
}
else {
@@ -372,6 +372,7 @@ void AppPreferencesDialog::initSettings()
else
hwSettings = tr("AVAILABLE: Radio settings stored %1").arg(str);
}
ui->lblGeneralSettings->setText(hwSettings);
ui->chkPromptSDSync->setChecked(profile.runSDSync());
ui->lblRadioColorSample->setPalette(QPalette(profile.radioSimCaseColor()));