- 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:
Marius Stanciu
2020-10-29 22:32:44 +02:00
committed by Marius
parent 46d2304b67
commit 38abfa4f31
12 changed files with 327 additions and 135 deletions

View File

@@ -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,