Skip to content

Commit

Permalink
Fix WizardAppWidget
Browse files Browse the repository at this point in the history
  • Loading branch information
yakutovicha committed Nov 22, 2024
1 parent c6b2547 commit 6ec7d49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aiidalab_widgets_base/wizard.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,6 @@ def __init__(self, steps, show_header=True, **kwargs):
# Initialize the accordion with the widgets ...
self.accordion = ipw.Accordion(children=widgets)
self._update_titles()
ipw.link((self.accordion, "selected_index"), (self, "selected_index"))

# Watch for changes to each step's state
for widget in widgets:
Expand Down Expand Up @@ -148,6 +147,7 @@ def __init__(self, steps, show_header=True, **kwargs):
self.show_header = show_header

super().__init__(children=[self.header, self.accordion], **kwargs)
ipw.link((self.accordion, "selected_index"), (self, "selected_index"))

@property
def show_header(self):
Expand Down

0 comments on commit 6ec7d49

Please sign in to comment.