- in Cutout Plugin made sure that mouse bytes feature will not autoselect the Excellon object that is created
This commit is contained in:
@@ -7,6 +7,10 @@ CHANGELOG for FlatCAM beta
|
|||||||
|
|
||||||
=================================================
|
=================================================
|
||||||
|
|
||||||
|
7.11.2021
|
||||||
|
|
||||||
|
- in Cutout Plugin made sure that mouse bytes feature will not autoselect the Excellon object that is created
|
||||||
|
|
||||||
6.11.2021
|
6.11.2021
|
||||||
|
|
||||||
- in Isolation Plugin there is no longer auto-switch to Properties Tab
|
- in Isolation Plugin there is no longer auto-switch to Properties Tab
|
||||||
|
|||||||
@@ -120,8 +120,9 @@ class CutOut(AppTool):
|
|||||||
|
|
||||||
if found_idx:
|
if found_idx:
|
||||||
try:
|
try:
|
||||||
name = current.indexes()[0].internalPointer().obj.options['name']
|
found_obj = current.indexes()[0].internalPointer().obj
|
||||||
kind = current.indexes()[0].internalPointer().obj.kind
|
name = found_obj.options['name']
|
||||||
|
kind = found_obj.kind
|
||||||
|
|
||||||
if kind in ['gerber', 'geometry']:
|
if kind in ['gerber', 'geometry']:
|
||||||
obj_type = {'gerber': 'grb', 'geometry': 'geo'}[kind]
|
obj_type = {'gerber': 'grb', 'geometry': 'geo'}[kind]
|
||||||
@@ -1856,7 +1857,7 @@ class CutOut(AppTool):
|
|||||||
exc_obj.options['xmax'] = xmax
|
exc_obj.options['xmax'] = xmax
|
||||||
exc_obj.options['ymax'] = ymax
|
exc_obj.options['ymax'] = ymax
|
||||||
|
|
||||||
ret = app_obj.app_obj.new_object('excellon', outname_exc, excellon_init)
|
ret = app_obj.app_obj.new_object('excellon', outname_exc, excellon_init, autoselected=False)
|
||||||
if ret == 'fail':
|
if ret == 'fail':
|
||||||
app_obj.inform.emit('[ERROR_NOTCL] %s' % _("Mouse bites failed."))
|
app_obj.inform.emit('[ERROR_NOTCL] %s' % _("Mouse bites failed."))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user