- activated the 'View Source' option in the project menu context menu for the Geometry objects

- in Image Import plugin now the created objects have the 'source_file' attribute with content
- working in the Excellon Editor - wip
This commit is contained in:
Marius Stanciu
2022-04-26 14:29:23 +03:00
committed by Marius
parent 060c52e47a
commit 779a8ccc9f
8 changed files with 392 additions and 79 deletions

View File

@@ -8298,7 +8298,8 @@ class App(QtCore.QObject):
self.source_editor_tab.t_frame.hide()
try:
self.source_editor_tab.load_text(file.getvalue(), clear_text=True, move_to_start=True)
source_text = file.getvalue()
self.source_editor_tab.load_text(source_text, clear_text=True, move_to_start=True)
except Exception as e:
self.log.error('App.on_view_source() -->%s' % str(e))
self.inform.emit('[ERROR] %s: %s' % (_('Failed to load the source code for the selected object'), str(e)))