Added ports to icon
This commit is contained in:
@@ -113,7 +113,7 @@ class DocumentTreeController(QObject):
|
||||
|
||||
def _edit_icon(self, component: Component) -> None:
|
||||
component_id = self.document.component_id(component)
|
||||
editor = IconEditorWindow(self.document.component_icon(component_id), self.window)
|
||||
editor = IconEditorWindow(self.document.component_icon(component_id), component.interface.ports, self.window)
|
||||
editor.saved.connect(partial(self.document.change_icon, component_id))
|
||||
editor.destroyed.connect(partial(self._icon_editor_closed, editor))
|
||||
self._icon_editors.append(editor)
|
||||
|
||||
Reference in New Issue
Block a user