- fixed issues in the Tools Database due of recent changes in how the data structure is created
- made sure that the right tools go only to the intended use, in Tools Database otherwise an error status message is created and Tools DB is closed on adding a wrong tool - fixed the usage for Tools Database in Unix-like OS's - done some modest refactoring - fixed the Search and Add feature in Geometry Object UI
This commit is contained in:
@@ -884,7 +884,7 @@ class ToolDrilling(AppTool, Excellon):
|
||||
|
||||
def on_tool_db_load(self):
|
||||
|
||||
filename = self.app.data_path + '\\tools_db.FlatDB'
|
||||
filename = self.app.tools_database_path()
|
||||
|
||||
# load the database tools from the file
|
||||
try:
|
||||
@@ -1213,7 +1213,7 @@ class ToolDrilling(AppTool, Excellon):
|
||||
# if the sender is in the column with index 2 then we update the tool_type key
|
||||
if cw_col == 2:
|
||||
tt = cw.currentText()
|
||||
typ = 'Iso' if tt == 'V' else "Rough"
|
||||
typ = 'Iso' if tt == 'V' else _("Rough")
|
||||
|
||||
self.excellon_tools[current_uid].update({
|
||||
'type': typ,
|
||||
|
||||
Reference in New Issue
Block a user