Merge pull request #7848 from mlampert/bugfix/thread-milling-task-panel

[PATH] - Save and restore ThreadFit attribute - fixes #7847
This commit is contained in:
sliptonic
2022-11-25 09:33:12 -06:00
committed by GitHub

View File

@@ -106,6 +106,7 @@ class TaskPanelOpPage(PathCircularHoleBaseGui.TaskPanelOpPage):
obj.ThreadOrientation = self.form.threadOrientation.currentData()
obj.ThreadType = self.form.threadType.currentData()
obj.ThreadName = self.form.threadName.currentText()
obj.ThreadFit = self.form.threadFit.value()
obj.Direction = self.form.opDirection.currentData()
obj.Passes = self.form.opPasses.value()
obj.LeadInOut = self.form.leadInOut.checkState() == QtCore.Qt.Checked
@@ -124,6 +125,7 @@ class TaskPanelOpPage(PathCircularHoleBaseGui.TaskPanelOpPage):
self.form.threadName.blockSignals(True)
self.form.threadName.setCurrentText(obj.ThreadName)
self.form.threadName.blockSignals(False)
self.form.threadFit.setValue(obj.ThreadFit)
self.form.threadTPI.setValue(obj.TPI)
self.form.opPasses.setValue(obj.Passes)