- refactoring all the references to object options property to obj_options to make a difference with the application options property

This commit is contained in:
Marius Stanciu
2022-02-16 10:47:12 +02:00
committed by Marius
parent de1d97327c
commit 1681b327ed
54 changed files with 896 additions and 892 deletions

View File

@@ -138,7 +138,7 @@ class Panelize(AppTool):
# SELECT THE CURRENT OBJECT
obj = self.app.collection.get_active()
if obj:
obj_name = obj.options['name']
obj_name = obj.obj_options['name']
if obj.kind == 'gerber':
# run once to make sure that the obj_type attribute is updated in the FCComboBox
self.ui.type_obj_combo.set_value(_("Gerber"))
@@ -250,7 +250,7 @@ class Panelize(AppTool):
if found_idx:
try:
name = current.indexes()[0].internalPointer().obj.options['name']
name = current.indexes()[0].internalPointer().obj.obj_options['name']
kind = current.indexes()[0].internalPointer().obj.kind
if kind in ['gerber', 'excellon', 'geometry']:
@@ -418,10 +418,10 @@ class Panelize(AppTool):
obj_fin.tools = copied_tools
obj_fin.solid_geometry = []
for option in panel_source_obj.options:
for option in panel_source_obj.obj_options:
if option != 'name':
try:
obj_fin.options[option] = panel_source_obj.options[option]
obj_fin.obj_options[option] = panel_source_obj.obj_options[option]
except KeyError:
app_obj.log.warning("Failed to copy option. %s" % str(option))