[TD]add autocorrect preference

This commit is contained in:
wandererfan
2023-03-13 11:54:07 -04:00
committed by WandererFan
parent ac2c09b487
commit 7ed22cc5f6
6 changed files with 459 additions and 335 deletions

View File

@@ -555,3 +555,14 @@ App::Color Preferences::getAccessibleColor(App::Color orig)
}
return orig;
}
bool Preferences::autoCorrectDimRefs()
{
Base::Reference<ParameterGrp> hGrp = App::GetApplication()
.GetUserParameter()
.GetGroup("BaseApp")
->GetGroup("Preferences")
->GetGroup("Mod/TechDraw/Dimensions");
bool correct = hGrp->GetBool("AutoCorrectRefs", true);
return correct;
}