- added a way to load older projects (made before recent changes)

This commit is contained in:
Marius Stanciu
2022-03-19 23:12:43 +02:00
committed by Marius
parent ee3b1089d5
commit 6a5a408c47
4 changed files with 44 additions and 6 deletions

View File

@@ -46,6 +46,15 @@ class ToolExtract(AppTool):
self.connect_signals_at_init()
def on_object_combo_changed(self):
extract_plugin_found = False
for idx in range(self.app.ui.notebook.count()):
if self.app.ui.notebook.tabText(idx) == _("Extract"):
extract_plugin_found = True
break
if extract_plugin_found is False:
return
# get the Gerber file who is the source of the punched Gerber
selection_index = self.ui.gerber_object_combo.currentIndex()
model_index = self.app.collection.index(selection_index, 0, self.ui.gerber_object_combo.rootModelIndex())