- 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

@@ -96,7 +96,7 @@ class TclCommandMillSlots(TclCommandSignaled):
if not obj.slots:
self.raise_tcl_error("The Excellon object has no slots: %s" % name)
# units = self.app.defaults['units'].upper()
# units = self.app.app_units.upper()
try:
if 'milled_dias' in args and args['milled_dias'] != 'all':
diameters = [x.strip() for x in args['milled_dias'].split(",")]

View File

@@ -84,7 +84,7 @@ class TclCommandOpenDXF(TclCommandSignaled):
if obj_type != "geometry" and obj_type != "gerber":
self.raise_tcl_error("Option type can be 'geometry' or 'gerber' only, got '%s'." % obj_type)
units = self.app.defaults['units'].upper()
units = self.app.app_units.upper()
with self.app.proc_container.new('%s...' % _("Opening")):

View File

@@ -80,7 +80,7 @@ class TclCommandOpenSVG(TclCommandSignaled):
if obj_type != "geometry" and obj_type != "gerber":
self.raise_tcl_error("Option type can be 'geometry' or 'gerber' only, got '%s'." % obj_type)
units = self.app.defaults['units'].upper()
units = self.app.app_units.upper()
with self.app.proc_container.new('%s...' % _("Working")):