- added a check (and added to Preferences too) for the verification of tools validity in the Isolation Tool

This commit is contained in:
Marius Stanciu
2020-10-19 16:56:21 +03:00
parent 13d4192124
commit 408327e48f
7 changed files with 57 additions and 27 deletions

View File

@@ -1027,7 +1027,7 @@ class ToolPaint(AppTool, Gerber):
continue
self.tooldia_list.append(self.tooldia)
else:
self.app.inform.emit('[ERROR_NOTCL] %s' % _("No selected tools in Tool Table."))
self.app.inform.emit('[ERROR_NOTCL] %s' % _("There are no tools selected in the Tool Table."))
return
self.select_method = self.ui.selectmethod_combo.get_value()
@@ -1740,7 +1740,7 @@ class ToolPaint(AppTool, Gerber):
continue
sorted_tools.append(self.tooldia)
if not sorted_tools:
self.app.inform.emit('[ERROR_NOTCL] %s' % _("No selected tools in Tool Table."))
self.app.inform.emit('[ERROR_NOTCL] %s' % _("There are no tools selected in the Tool Table."))
return 'fail'
# Initializes the new geometry object