PD: add enum class to TaskPadParameters to avoid to work with magic numbers

This commit is contained in:
wmayer
2021-11-26 16:58:59 +01:00
parent 26dd3ddeb3
commit 87c3b522d0
4 changed files with 36 additions and 34 deletions

View File

@@ -113,7 +113,7 @@ void TaskPocketParameters::updateUI(int index)
// (may happen in bodies)
// FIXME: Fix probably lies somewhere in IF block on line 125 of FeaturePocket.cpp
}
else if (mode == Modes::UpToFace) {
else if (mode == Modes::ToFace) {
isOffsetEditVisible = true;
isReversedEnabled = true;
isFaceEditEnabled = true;
@@ -173,7 +173,7 @@ void TaskPocketParameters::onModeChanged(int index)
oldLength = pcPocket->Length.getValue();
pcPocket->Type.setValue("UpToFirst");
break;
case Modes::UpToFace:
case Modes::ToFace:
// Because of the code at the beginning of Pocket::execute() which is used to detect
// broken legacy parts, we must set the length to zero here!
oldLength = pcPocket->Length.getValue();