Pref: Move pick radius to selection.

This commit is contained in:
Paddle
2023-04-12 14:44:31 +02:00
parent a939f918b1
commit cf0b6b8e93
4 changed files with 64 additions and 57 deletions

View File

@@ -45,6 +45,7 @@ DlgSettingsSelection::~DlgSettingsSelection()
void DlgSettingsSelection::saveSettings()
{
ui->spinPickRadius->onSave();
auto handle = App::GetApplication().GetParameterGroupByPath("User parameter:BaseApp/Preferences/TreeView");
handle->SetBool("SyncView", ui->checkBoxAutoSwitch->isChecked());
handle->SetBool("SyncSelection", ui->checkBoxAutoExpand->isChecked());
@@ -55,6 +56,7 @@ void DlgSettingsSelection::saveSettings()
void DlgSettingsSelection::loadSettings()
{
ui->spinPickRadius->onRestore();
auto handle = App::GetApplication().GetParameterGroupByPath("User parameter:BaseApp/Preferences/TreeView");
ui->checkBoxAutoSwitch->setChecked(handle->GetBool("SyncView", true));
ui->checkBoxAutoExpand->setChecked(handle->GetBool("SyncSelection", true));