avoid unnecessary error

This commit is contained in:
sliptonic
2022-02-11 08:53:31 -06:00
parent 1e33533539
commit b8162dfa28
2 changed files with 10 additions and 7 deletions

View File

@@ -31,8 +31,8 @@
<rect>
<x>0</x>
<y>0</y>
<width>561</width>
<height>675</height>
<width>139</width>
<height>357</height>
</rect>
</property>
<attribute name="label">
@@ -409,7 +409,7 @@
<item>
<widget class="QToolBox" name="toolBox_2">
<property name="currentIndex">
<number>1</number>
<number>0</number>
</property>
<widget class="QWidget" name="page_3">
<property name="geometry">
@@ -1170,8 +1170,8 @@
<rect>
<x>0</x>
<y>0</y>
<width>561</width>
<height>675</height>
<width>300</width>
<height>145</height>
</rect>
</property>
<attribute name="label">

View File

@@ -348,11 +348,14 @@ class JobTemplateExport:
job.Stock.Height,
)
elif stockType == PathStock.StockType.CreateCylinder:
seHint = translate("Path_Job", "Cylinder: %.2f x %.2f") % (
seHint = translate("Path_Job:", "Cylinder: %.2f x %.2f") % (
job.Stock.Radius,
job.Stock.Height,
)
else:
elif stockType == PathStock.StockType.Unknown:
seHint = "-"
else: # Existing Solid
seHint = "-"
PathLog.error(translate("Path_Job", "Unsupported stock type"))
self.dialog.stockExtentHint.setText(seHint)