[Sketcher] Simplify general settings management

This commit is contained in:
0penBrain
2020-04-11 14:10:35 +02:00
committed by abdullahtahiriyo
parent 5b76419d58
commit 9862670cf2
3 changed files with 44 additions and 24 deletions

View File

@@ -362,7 +362,7 @@ public:
}
ParameterGrp::handle hGrp = App::GetApplication().GetParameterGroupByPath("User parameter:BaseApp/Preferences/Mod/Sketcher");
bool avoidredundant = hGrp->GetBool("AvoidRedundantAutoconstraints",true);
bool avoidredundant = hGrp->GetGroup("General")->GetBool("AvoidRedundantAutoconstraints",true);
if(avoidredundant)
removeRedundantHorizontalVertical(static_cast<Sketcher::SketchObject *>(sketchgui->getObject()),sugConstr1,sugConstr2);
@@ -1167,7 +1167,7 @@ public:
}
ParameterGrp::handle hGrp = App::GetApplication().GetParameterGroupByPath("User parameter:BaseApp/Preferences/Mod/Sketcher");
bool avoidredundant = hGrp->GetBool("AvoidRedundantAutoconstraints",true);
bool avoidredundant = hGrp->GetGroup("General")->GetBool("AvoidRedundantAutoconstraints",true);
if (Mode == STATUS_Close) {