When refreshing the pathToolController ui, use UserStrings and not just plain values.

Fixes Symptom: If I open the PathToolController, Press "Edit Local Copy..." and then "Ok" the units for the feedrates were gone.
This commit is contained in:
Itai Nahshon
2017-07-14 05:13:17 +03:00
parent aa07c77745
commit 2ba4bfb45a

View File

@@ -314,10 +314,10 @@ class TaskPanel:
def setFields(self):
self.form.tcoName.setText(self.obj.Label)
self.form.uiToolNum.setValue(self.obj.ToolNumber)
self.form.vertFeed.setText(str(self.obj.VertFeed.Value))
self.form.horizFeed.setText(str(self.obj.HorizFeed.Value))
self.form.vertRapid.setText(str(self.obj.VertRapid.Value))
self.form.horizRapid.setText(str(self.obj.HorizRapid.Value))
self.form.vertFeed.setText(self.obj.VertFeed.UserString)
self.form.horizFeed.setText(self.obj.HorizFeed.UserString)
self.form.vertRapid.setText(self.obj.VertRapid.UserString)
self.form.horizRapid.setText(self.obj.HorizRapid.UserString)
self.form.spindleSpeed.setValue(self.obj.SpindleSpeed)