Skip to content

Commit ea3ad6f

Browse files
committed
qtdragon -retract and safe Z distance should reflect machine units
1 parent 94dc58d commit ea3ad6f

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

share/qtvcp/screens/qtdragon/qtdragon_handler.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,6 +358,8 @@ def init_widgets(self):
358358
self.w.lbl_laser_offset.setText('INCH')
359359
self.w.lbl_camera_offset.setText('INCH')
360360
self.w.lbl_touchheight_units.setText('INCH')
361+
self.w.lbl_retract_dist_units.setText('INCH')
362+
self.w.lbl_z_safe_travel_units.setText('INCH')
361363

362364
#set up gcode list
363365
self.gcodes.setup_list()
@@ -823,7 +825,7 @@ def btn_touchoff_clicked(self):
823825
# instantiate dialog box
824826
sensor = self.w.sender().property('sensor')
825827
unit = "mm" if INFO.MACHINE_IS_METRIC else "in"
826-
info = "Ensure tooltip is within {} {} of tool sensor and click OK".format(self.w.lineEdit_max_probe.text,unit))
828+
info = "Ensure tooltip is within {} {} of tool sensor and click OK".format(self.w.lineEdit_max_probe.text(),unit)
827829
mess = {'NAME':'MESSAGE', 'ID':sensor, 'MESSAGE':'TOOL TOUCHOFF', 'MORE':info, 'TYPE':'OKCANCEL'}
828830
ACTION.CALL_DIALOG(mess)
829831

0 commit comments

Comments
 (0)