- new Application Objects will hold all the options that start with 'tools_'
This commit is contained in:
@@ -16,6 +16,7 @@ CHANGELOG for FlatCAM beta
|
|||||||
- Excellon and Geometry objects no longer have the self.options dict overwritten with the application defaults
|
- Excellon and Geometry objects no longer have the self.options dict overwritten with the application defaults
|
||||||
- Drilling Tool - first tool that benefit from using the object options instead of application defaults; this is useful if an object is recreated on project load
|
- Drilling Tool - first tool that benefit from using the object options instead of application defaults; this is useful if an object is recreated on project load
|
||||||
- Drilling Tool - fixed it to update the UI form also for common parameters on object change
|
- Drilling Tool - fixed it to update the UI form also for common parameters on object change
|
||||||
|
- new Application Objects will hold all the options that start with 'tools_'
|
||||||
|
|
||||||
10.12.2020
|
10.12.2020
|
||||||
|
|
||||||
|
|||||||
@@ -136,6 +136,7 @@ class AppObject(QtCore.QObject):
|
|||||||
obj.options[oname] = self.app.options[option]
|
obj.options[oname] = self.app.options[option]
|
||||||
|
|
||||||
# add some of the FlatCAM Tools related properties
|
# add some of the FlatCAM Tools related properties
|
||||||
|
# it is done like this to preserve some kind of order in the keys
|
||||||
if kind == 'excellon':
|
if kind == 'excellon':
|
||||||
for option in self.app.options:
|
for option in self.app.options:
|
||||||
if option.find('tools_drill_') == 0:
|
if option.find('tools_drill_') == 0:
|
||||||
@@ -150,7 +151,9 @@ class AppObject(QtCore.QObject):
|
|||||||
for option in self.app.options:
|
for option in self.app.options:
|
||||||
if option.find('tools_mill_') == 0:
|
if option.find('tools_mill_') == 0:
|
||||||
obj.options[option] = self.app.options[option]
|
obj.options[option] = self.app.options[option]
|
||||||
|
for option in self.app.options:
|
||||||
|
if option.find('tools_') == 0:
|
||||||
|
obj.options[option] = self.app.options[option]
|
||||||
# ############################################################################################################
|
# ############################################################################################################
|
||||||
# ############################################################################################################
|
# ############################################################################################################
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user