feat(cpn): add "use saved settings" option to application and profiles settings (#6999)
This commit is contained in:
@@ -103,6 +103,7 @@ void AppPreferencesDialog::accept()
|
||||
g.fwTraceLog(ui->opt_fwTraceLog->isChecked());
|
||||
g.appLogsDir(ui->appLogsDir->text());
|
||||
g.runAppInstaller(ui->chkPromptInstall->isChecked());
|
||||
g.useSavedSettings(ui->chkUseSavedSettingsApp->isChecked());
|
||||
|
||||
// Simulator tab
|
||||
g.simuSW(ui->simuSW->isChecked());
|
||||
@@ -181,6 +182,7 @@ void AppPreferencesDialog::accept()
|
||||
profile.splashFile(ui->SplashFileName->text());
|
||||
profile.runSDSync(ui->chkPromptSDSync->isChecked());
|
||||
profile.radioSimCaseColor(ui->lblRadioColorSample->palette().button().color());
|
||||
profile.useSavedSettings(ui->chkUseSavedSettingsProfile->isChecked());
|
||||
|
||||
// The profile name may NEVER be empty
|
||||
if (ui->profileNameLE->text().isEmpty())
|
||||
@@ -294,6 +296,7 @@ void AppPreferencesDialog::initSettings()
|
||||
ui->cboSimuGenericKeysPos->setCurrentIndex(g.simuGenericKeysPos());
|
||||
ui->chkSimuScrollButtons->setChecked(g.simuScrollButtons());
|
||||
ui->joystickWarningCB->setChecked(g.disableJoystickWarning());
|
||||
ui->chkUseSavedSettingsApp->setChecked(g.useSavedSettings());
|
||||
|
||||
#if defined(USE_SDL)
|
||||
ui->joystickChkB->setChecked(g.jsSupport());
|
||||
@@ -373,6 +376,7 @@ void AppPreferencesDialog::initSettings()
|
||||
hwSettings = tr("AVAILABLE: Radio settings stored %1").arg(str);
|
||||
}
|
||||
|
||||
ui->chkUseSavedSettingsProfile->setChecked(profile.useSavedSettings());
|
||||
ui->lblGeneralSettings->setText(hwSettings);
|
||||
ui->chkPromptSDSync->setChecked(profile.runSDSync());
|
||||
ui->lblRadioColorSample->setPalette(QPalette(profile.radioSimCaseColor()));
|
||||
|
||||
Reference in New Issue
Block a user