Skip to content

Commit

Permalink
Merge pull request #345 from gaphor/sourcery/fix/show-element-editor-…
Browse files Browse the repository at this point in the history
…by-default

Show element editor by default (Sourcery refactored)
  • Loading branch information
amolenaar committed Jun 3, 2020
2 parents fe93193 + d950bf9 commit c478ac9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gaphor/ui/elementeditor.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,8 @@ def _selection_change(self, event=None, focused_item=None):

@event_handler(AssociationUpdated)
def _element_changed(self, event):
element = event.element
if event.property is Presentation.subject: # type: ignore[misc] # noqa: F821
element = event.element
if element is self._current_item:
self.clear_pages()
self.create_pages(self._current_item)

0 comments on commit c478ac9

Please sign in to comment.