- deleted the Calibration Plugin (made redundant by changes in other Plugins)
- some strings were updated
This commit is contained in:
@@ -834,7 +834,7 @@ class ToolPaint(AppTool, Gerber):
|
||||
|
||||
# if new tool diameter already in the Tool List then abort
|
||||
if truncated_tooldia in tool_dias:
|
||||
self.app.inform.emit('[WARNING_NOTCL] %s' % _("Cancelled. Tool already in Tool Table."))
|
||||
self.app.inform.emit('[WARNING_NOTCL] %s %s' % (_("Cancelled."), _("Tool already in Tool Table.")))
|
||||
self.blockSignals(False)
|
||||
return
|
||||
|
||||
@@ -920,7 +920,7 @@ class ToolPaint(AppTool, Gerber):
|
||||
|
||||
# if new tool diameter found in Tools Database already in the Tool List then abort
|
||||
if updated_tooldia is not None and updated_tooldia in tool_dias:
|
||||
self.app.inform.emit('[WARNING_NOTCL] %s' % _("Cancelled. Tool already in Tool Table."))
|
||||
self.app.inform.emit('[WARNING_NOTCL] %s %s' % (_("Cancelled."), _("Tool already in Tool Table.")))
|
||||
self.blockSignals(False)
|
||||
return
|
||||
|
||||
@@ -980,7 +980,7 @@ class ToolPaint(AppTool, Gerber):
|
||||
truncated_tooldia = self.app.dec_format(tool_dia, self.decimals)
|
||||
if truncated_tooldia in tool_dias:
|
||||
if muted is None:
|
||||
self.app.inform.emit('[WARNING_NOTCL] %s' % _("Cancelled. Tool already in Tool Table."))
|
||||
self.app.inform.emit('[WARNING_NOTCL] %s %s' % (_("Cancelled."), _("Tool already in Tool Table.")))
|
||||
self.blockSignals(False)
|
||||
return
|
||||
|
||||
@@ -1099,7 +1099,7 @@ class ToolPaint(AppTool, Gerber):
|
||||
except Exception as e:
|
||||
self.app.log.error(str(e))
|
||||
|
||||
self.app.inform.emit('[success] %s' % _("Tool(s) deleted from Tool Table."))
|
||||
self.app.inform.emit('[success] %s' % _("Tools deleted from Tool Table."))
|
||||
self.blockSignals(False)
|
||||
self.build_ui()
|
||||
|
||||
@@ -2845,7 +2845,7 @@ class ToolPaint(AppTool, Gerber):
|
||||
tool_dias.append(float('%.*f' % (self.decimals, (v[tool_v]))))
|
||||
|
||||
if float('%.*f' % (self.decimals, tooldia)) in tool_dias:
|
||||
self.app.inform.emit('[WARNING_NOTCL] %s' % _("Cancelled. Tool already in Tool Table."))
|
||||
self.app.inform.emit('[WARNING_NOTCL] %s %s' % (_("Cancelled."), _("Tool already in Tool Table.")))
|
||||
self.ui_connect()
|
||||
return 'fail'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user