- the application now uses only the default values from the app.options dict, the app.defaults dict holds the definitive default values
- fixed some outstanding issues from the PyQt6 port - PEP8 fixes - minor fixes - updated the saving of Preferences to update the self.options too: the `Apply` action will update the self.options but the `Save` action will save the updated preferences to the file on disk
This commit is contained in:
@@ -75,7 +75,7 @@ class TclCommandBbox(TclCommand):
|
||||
_("Expected GerberObject or GeometryObject, got"), name, type(obj)))
|
||||
|
||||
if 'margin' not in args:
|
||||
args['margin'] = float(self.app.defaults["gerber_bboxmargin"])
|
||||
args['margin'] = float(self.app.options["gerber_bboxmargin"])
|
||||
margin = args['margin']
|
||||
|
||||
if 'rounded' in args:
|
||||
@@ -85,7 +85,7 @@ class TclCommandBbox(TclCommand):
|
||||
par = args['rounded']
|
||||
rounded = bool(eval(par))
|
||||
else:
|
||||
rounded = bool(eval(self.app.defaults["gerber_bboxrounded"]))
|
||||
rounded = bool(eval(self.app.options["gerber_bboxrounded"]))
|
||||
|
||||
args.pop('name', None)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user