- working to differentiate between temporary units change and permanent units change

This commit is contained in:
Marius Stanciu
2021-09-27 17:28:54 +03:00
committed by Marius
parent 89426e8ac3
commit 3fc0ab826f
50 changed files with 185 additions and 186 deletions

View File

@@ -405,7 +405,7 @@ class ToolMilling(AppTool, Excellon):
self.ui = MillingUI(layout=self.layout, app=self.app, name=self.pluginName)
def set_tool_ui(self):
self.units = self.app.defaults['units'].upper()
self.units = self.app.app_units.upper()
self.old_tool_dia = self.app.defaults["tools_iso_newdia"]
self.obj_name = ""
@@ -936,7 +936,7 @@ class ToolMilling(AppTool, Excellon):
)
def build_ui_mill(self):
self.units = self.app.defaults['units']
self.units = self.app.app_units
if self.target_obj:
self.ui.param_frame.setDisabled(False)
@@ -1056,7 +1056,7 @@ class ToolMilling(AppTool, Excellon):
def build_ui_exc(self):
# updated units
self.units = self.app.defaults['units'].upper()
self.units = self.app.app_units.upper()
if self.target_obj:
self.ui.param_frame.setDisabled(False)
@@ -2189,7 +2189,7 @@ class ToolMilling(AppTool, Excellon):
"""
self.ui_disconnect()
self.units = self.app.defaults['units'].upper()
self.units = self.app.app_units.upper()
tooldia = float(tool['tooldia'])