- added a way to load older projects (made before recent changes)
This commit is contained in:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user