Skip to content

Commit 94dc58d

Browse files
committed
qtdragon -use proper units in touchplate dialog
1 parent 56883b9 commit 94dc58d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

share/qtvcp/screens/qtdragon/qtdragon_handler.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -822,7 +822,8 @@ def btn_touchoff_clicked(self):
822822
return
823823
# instantiate dialog box
824824
sensor = self.w.sender().property('sensor')
825-
info = "Ensure tooltip is within {} mm of tool sensor and click OK".format(self.w.lineEdit_max_probe.text())
825+
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))
826827
mess = {'NAME':'MESSAGE', 'ID':sensor, 'MESSAGE':'TOOL TOUCHOFF', 'MORE':info, 'TYPE':'OKCANCEL'}
827828
ACTION.CALL_DIALOG(mess)
828829

0 commit comments

Comments
 (0)