- 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

@@ -91,7 +91,7 @@ class GerberObject(FlatCAMObj, Gerber):
# store the status of grid snapping
self.grid_status_memory = None
self.units_found = self.app.defaults['units']
self.units_found = self.app.app_units
self.fill_color = self.app.defaults['gerber_plot_fill']
self.outline_color = self.app.defaults['gerber_plot_line']
@@ -120,7 +120,7 @@ class GerberObject(FlatCAMObj, Gerber):
FlatCAMObj.set_ui(self, ui)
log.debug("GerberObject.set_ui()")
self.units = self.app.defaults['units'].upper()
self.units = self.app.app_units.upper()
self.replotApertures.connect(self.on_mark_cb_click_table)
@@ -195,7 +195,7 @@ class GerberObject(FlatCAMObj, Gerber):
self.on_aperture_table_visibility_change()
self.build_ui()
self.units_found = self.app.defaults['units']
self.units_found = self.app.app_units
self.set_offset_values()