PartDesign: fix thread depth not shown in taskpanel

This commit is contained in:
Alfredo Monclus
2025-12-19 08:45:52 -03:00
committed by Kacper Donat
parent 9e5e52c0ff
commit 35bcb14d89

View File

@@ -183,7 +183,7 @@ TaskHoleParameters::TaskHoleParameters(ViewProviderHole* HoleView, QWidget* pare
ui->UpdateView->setVisible(isThreaded && isModeled);
ui->Depth->setEnabled(depthIsDimension);
ui->ThreadDepthWidget->setVisible(isThreaded && isModeled);
ui->ThreadDepthWidget->setVisible(isThreaded);
ui->ThreadDepthDimensionWidget->setVisible(
std::string(pcHole->ThreadDepthType.getValueAsString()) == "Dimension"
@@ -300,7 +300,7 @@ void TaskHoleParameters::holeTypeChanged(int index)
ui->CustomClearanceWidget->setVisible(isModeled);
ui->CustomThreadClearance->setEnabled(pcHole->UseCustomThreadClearance.getValue());
ui->ThreadDepthWidget->setVisible(isThreaded && isModeled);
ui->ThreadDepthWidget->setVisible(isThreaded);
ui->ThreadDepthDimensionWidget->setVisible(
std::string(pcHole->ThreadDepthType.getValueAsString()) == "Dimension"
);