Merged in Beta_8.994 (pull request #321)

Tool Subtract fix
This commit is contained in:
Marius Stanciu 2020-10-28 14:03:41 +00:00
commit 3bb2e3829b
3 changed files with 4 additions and 3 deletions

View File

@ -26,6 +26,7 @@ CHANGELOG for FlatCAM beta
- fixed Tcl command Copper Clear (NCC)
- fixed Tcl command Paint
- temporary fix for comboboxes not finding the the value in the items when setting themselves with a value by defaulting to the first item in the list
- fix in Tool Subtract where there was a typo
27.10.2020

View File

@ -2133,8 +2133,8 @@ class FCComboBox(QtWidgets.QComboBox):
idx = self.findText(str(val))
if idx == -1:
self.setCurrentIndex(0)
else:
self.setCurrentIndex(idx)
return
self.setCurrentIndex(idx)
@property
def is_last(self):

View File

@ -205,7 +205,7 @@ class ToolSub(AppTool):
app_obj.inform.emit("%s" % _("Subtraction aperture processing finished."))
outname = self.target_gerber_combo.currentText() + '_sub'
outname = self.ui.target_gerber_combo.currentText() + '_sub'
self.aperture_processing_finished.emit(outname, output)
self.app.worker_task.emit({'fcn': worker_job, 'params': [self.app]})