- the Editors require an Object UI build before launching; I've added the required code so the shortcut keys work even if the Properties tab is not current

This commit is contained in:
Marius Stanciu
2021-10-08 12:47:15 +03:00
parent 6f884f4d64
commit e7fd78ea28
2 changed files with 3 additions and 0 deletions

View File

@@ -2537,6 +2537,8 @@ class App(QtCore.QObject):
self.defaults.report_usage("object2editor()")
edited_object = self.collection.get_active()
edited_object.build_ui()
self.ui.notebook.setCurrentWidget(self.ui.properties_tab)
if edited_object and edited_object.kind in ['cncjob', 'excellon', 'geometry', 'gerber']:
pass