[PD] Fix wrong mode options when opening existing revolution

Only the "Dimension" options showed regardless of what mode was selected.
This commit is contained in:
Ajinkya Dahale
2023-11-21 20:05:28 +05:30
committed by Adrián Insaurralde Avalos
parent c34bc88d66
commit 48a1db8a76
2 changed files with 3 additions and 4 deletions

View File

@@ -86,7 +86,7 @@ TaskRevolutionParameters::TaskRevolutionParameters(PartDesignGui::ViewProvider*
setupDialog();
blockUpdate = false;
updateUI();
updateUI(ui->changeMode->currentIndex());
connectSignals();
setFocus();
@@ -351,7 +351,6 @@ void TaskRevolutionParameters::onSelectionChanged(const Gui::SelectionChanges& m
propReferenceAxis->setValue(selObj, axis);
recomputeFeature();
updateUI();
}
}
}
@@ -546,7 +545,7 @@ void TaskRevolutionParameters::onModeChanged(int index)
break;
case PartDesign::Revolution::RevolMethod::ToLast:
if (!isGroove)
pcType->setValue("UpToLast");
pcType->setValue("UpToLast");
else
pcType->setValue("ThroughAll");
break;

View File

@@ -92,7 +92,7 @@ protected:
private:
void connectSignals();
void updateUI(int index=0); // TODO: Implement for index and remove default
void updateUI(int index);
void translateModeList(int index);
// TODO: This is common with extrude. Maybe send to superclass.
void translateFaceName();