Skip to content

Commit

Permalink
Remove unnecessary display modifiers on info container
Browse files Browse the repository at this point in the history
  • Loading branch information
edan-bainglass committed Jul 8, 2024
1 parent cf575a1 commit 8a358d7
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/aiidalab_qe/app/wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,11 @@ def enable_toggles(self) -> None:
def _on_guide_toggle(self, change: dict):
"""Toggle the guide section."""
self._view.info_container.children = [self._view.guide] if change["new"] else []
self._view.info_container.layout.display = "flex" if change["new"] else "none"

@without_triggering("guide_toggle")
def _on_about_toggle(self, change: dict):
"""Toggle the about section."""
self._view.info_container.children = [self._view.about] if change["new"] else []
self._view.info_container.layout.display = "flex" if change["new"] else "none"

def _set_event_handlers(self) -> None:
"""Set up event handlers."""
Expand Down

0 comments on commit 8a358d7

Please sign in to comment.