- added a protection on opening the tools database UI if the tools DB file is not loaded
This commit is contained in:
@@ -2680,7 +2680,9 @@ class ToolIsolation(AppTool, Gerber):
|
||||
if self.app.ui.plot_tab_area.tabText(idx) == _("Tools Database"):
|
||||
self.app.ui.plot_tab_area.setCurrentWidget(self.app.tools_db_tab)
|
||||
break
|
||||
self.app.on_tools_database(source='iso')
|
||||
ret_val = self.app.on_tools_database(source='iso')
|
||||
if ret_val == 'fail':
|
||||
return
|
||||
self.app.tools_db_tab.ok_to_add = True
|
||||
self.app.tools_db_tab.ui.buttons_frame.hide()
|
||||
self.app.tools_db_tab.ui.add_tool_from_db.show()
|
||||
|
||||
Reference in New Issue
Block a user