Skip to content

Commit

Permalink
Fixing rendered=True in euphonic widgets.
Browse files Browse the repository at this point in the history
  • Loading branch information
mikibonacci committed Dec 4, 2024
1 parent 4a7a378 commit a78c55b
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/aiidalab_qe_vibroscopy/app/widgets/euphonicwidget.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,8 @@ def render(self):
self.download_widget,
]

self.rendered = True

def _on_reset_uploads_button_clicked(self, change):
self.upload_widget.upload_phonopy_yaml.value.clear()
self.upload_widget.upload_phonopy_yaml._counter = 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,8 @@ def render(self):
],
)

self.rendered = True

def _on_plot_button_clicked(self, change=None):
self.settings_intensity.plot_button.disabled = True
self.map_widget._update_plot()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,8 @@ def render(self):
self.settings_intensity,
]

self.rendered = True

def _on_plot_button_clicked(self, change=None):
self._model._update_qsection_spectra()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,8 @@ def render(self):
self.settings_intensity,
]

self.rendered = True

def _on_plot_button_clicked(self, change=None):
self.settings_intensity.plot_button.disabled = True
self.map_widget._update_plot()
Expand Down

0 comments on commit a78c55b

Please sign in to comment.